浏览代码

Fixed chrome will fake safe user-agent

iAladdin 5 年之前
父节点
当前提交
f1c84b3680
共有 3 个文件被更改,包括 1 次插入1 次删除
  1. 0 0
      dist/DPlayer.min.js
  2. 0 0
      dist/DPlayer.min.js.map
  3. 1 1
      src/js/template.js

文件差异内容过多而无法显示
+ 0 - 0
dist/DPlayer.min.js


文件差异内容过多而无法显示
+ 0 - 0
dist/DPlayer.min.js.map


+ 1 - 1
src/js/template.js

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

部分文件因为文件数量过多而无法显示