mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Only load mediaSessions if available or if NativeShell
This commit is contained in:
parent
097802cd51
commit
370a01f4af
1 changed files with 4 additions and 1 deletions
|
@ -576,7 +576,10 @@ var AppInfo = {};
|
|||
require(["components/playback/volumeosd"]);
|
||||
}
|
||||
|
||||
require(["mediaSession", "serverNotifications"]);
|
||||
if (navigator.mediaSession || window.NativeShell) {
|
||||
require(["mediaSession"]);
|
||||
}
|
||||
require(["serverNotifications"]);
|
||||
require(["date-fns", "date-fns/locale"]);
|
||||
|
||||
if (!browser.tv && !browser.xboxOne) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue