Merge pull request #904 from laozhoubuluo/fix/airplay-btn

This commit is contained in:
DIYgod
2020-06-26 00:19:38 +08:00
committed by GitHub
2 changed files with 1 additions and 7 deletions
+1 -3
View File
@@ -30,9 +30,7 @@ class Controller {
this.initScreenshotButton();
this.initSubtitleButton();
this.initHighlights();
if (utils.isSafari) {
this.initAirplayButton();
}
this.initAirplayButton();
if (!utils.isMobile) {
this.initVolumeButton();
}
-4
View File
@@ -1,7 +1,5 @@
const isMobile = /mobile/i.test(window.navigator.userAgent);
const isSafari = /Safari/i.test(window.navigator.userAgent);
const utils = {
/**
* Parse second to time string
@@ -91,8 +89,6 @@ const utils = {
isMobile: isMobile,
isSafari: isSafari,
isFirefox: /firefox/i.test(window.navigator.userAgent),
isChrome: /chrome/i.test(window.navigator.userAgent),