mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
cleanup for mediaSession require
This commit is contained in:
parent
e4c7282b92
commit
01d82010ed
1 changed files with 1 additions and 9 deletions
|
@ -1159,10 +1159,6 @@ var AppInfo = {};
|
||||||
|
|
||||||
require(["components/thememediaplayer", "scripts/autobackdrops"]);
|
require(["components/thememediaplayer", "scripts/autobackdrops"]);
|
||||||
|
|
||||||
if ("cordova" === self.appMode || "android" === self.appMode) {
|
|
||||||
require(["cordova/mediasession"]);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!browser.tv && !browser.xboxOne && !browser.ps4) {
|
if (!browser.tv && !browser.xboxOne && !browser.ps4) {
|
||||||
require(["components/nowplayingbar/nowplayingbar"]);
|
require(["components/nowplayingbar/nowplayingbar"]);
|
||||||
}
|
}
|
||||||
|
@ -1175,11 +1171,7 @@ var AppInfo = {};
|
||||||
require(["components/playback/volumeosd"]);
|
require(["components/playback/volumeosd"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (navigator.mediaSession) {
|
require(["mediaSession", "serverNotifications"]);
|
||||||
require(["mediaSession"]);
|
|
||||||
}
|
|
||||||
|
|
||||||
require(["serverNotifications"]);
|
|
||||||
|
|
||||||
if (!browser.tv && !browser.xboxOne) {
|
if (!browser.tv && !browser.xboxOne) {
|
||||||
require(["components/playback/playbackorientation"]);
|
require(["components/playback/playbackorientation"]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue