From ec183609589e8f77fb0b8844336b6ecbe1f34089 Mon Sep 17 00:00:00 2001 From: vitorsemeano Date: Tue, 5 Mar 2019 18:52:53 +0000 Subject: [PATCH] removed deadcode for registerServiceWorker --- src/scripts/site.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/scripts/site.js b/src/scripts/site.js index 1d8ee1431a..d48fcc4e8b 100644 --- a/src/scripts/site.js +++ b/src/scripts/site.js @@ -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); }