瀏覽代碼

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,
                 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,

部分文件因文件數量過多而無法顯示