mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update shared components
This commit is contained in:
parent
b760de915d
commit
b14198727b
15 changed files with 51 additions and 39 deletions
|
@ -2857,12 +2857,14 @@ var AppInfo = {};
|
|||
|
||||
postInitDependencies.push('bower_components/emby-webcomponents/input/api');
|
||||
|
||||
if (navigator.serviceWorker && !AppInfo.isNativeApp) {
|
||||
navigator.serviceWorker.register('serviceworker.js');
|
||||
}
|
||||
if (!browserInfo.tv && !AppInfo.isNativeApp) {
|
||||
if (navigator.serviceWorker) {
|
||||
navigator.serviceWorker.register('serviceworker.js');
|
||||
}
|
||||
|
||||
if (window.Notification && !AppInfo.isNativeApp) {
|
||||
postInitDependencies.push('bower_components/emby-webcomponents/notifications/notifications');
|
||||
if (window.Notification || navigator.serviceWorker) {
|
||||
postInitDependencies.push('bower_components/emby-webcomponents/notifications/notifications');
|
||||
}
|
||||
}
|
||||
|
||||
require(postInitDependencies);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue