Browse Source

Fixed chrome will fake safe user-agent

iAladdin 5 years ago
parent
commit
f1c84b3680
3 changed files with 1 additions and 1 deletions
  1. 0 0
      dist/DPlayer.min.js
  2. 0 0
      dist/DPlayer.min.js.map
  3. 1 1
      src/js/template.js

File diff suppressed because it is too large
+ 0 - 0
dist/DPlayer.min.js


File diff suppressed because it is too large
+ 0 - 0
dist/DPlayer.min.js.map


+ 1 - 1
src/js/template.js

@@ -22,7 +22,7 @@ class Template {
                 current: true,
                 pic: this.options.video.pic,
                 screenshot: this.options.screenshot,
-                airplay: utils.isSafari ? this.options.airplay : false,
+                airplay: utils.isSafari && !utils.isChrome ? this.options.airplay : false,
                 preload: this.options.preload,
                 url: this.options.video.url,
                 subtitle: this.options.subtitle,

Some files were not shown because too many files changed in this diff