mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
removed deadcode for registerServiceWorker
This commit is contained in:
parent
cb1309bb09
commit
ec18360958
@ -1294,15 +1294,7 @@ var AppInfo = {};
|
||||
function registerServiceWorker() {
|
||||
if (navigator.serviceWorker && "cordova" !== self.appMode && "android" !== self.appMode) {
|
||||
try {
|
||||
navigator.serviceWorker.register("serviceworker.js").then(function () {
|
||||
return navigator.serviceWorker.ready;
|
||||
}).then(function (reg) {
|
||||
if (reg && reg.sync) {
|
||||
return reg.sync.register("emby-sync").then(function () {// TODO cvium: the sync serviceworker is a noop?
|
||||
//window.SyncRegistered = Dashboard.isConnectMode()
|
||||
});
|
||||
}
|
||||
});
|
||||
navigator.serviceWorker.register("serviceworker.js");
|
||||
} catch (err) {
|
||||
console.log("Error registering serviceWorker: " + err);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user