summaryrefslogtreecommitdiff
path: root/src/web/app
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/app')
-rw-r--r--src/web/app/boot.js4
-rw-r--r--src/web/app/common/scripts/check-for-update.ts4
2 files changed, 0 insertions, 8 deletions
diff --git a/src/web/app/boot.js b/src/web/app/boot.js
index 211dc2f883..0a3154ad88 100644
--- a/src/web/app/boot.js
+++ b/src/web/app/boot.js
@@ -95,10 +95,6 @@
// Clear cache (serive worker)
try {
navigator.serviceWorker.controller.postMessage('clear');
-
- navigator.serviceWorker.getRegistrations().then(registrations => {
- registrations.forEach(registration => registration.unregister());
- });
} catch (e) {
console.error(e);
}
diff --git a/src/web/app/common/scripts/check-for-update.ts b/src/web/app/common/scripts/check-for-update.ts
index 0b58c0a674..1540924510 100644
--- a/src/web/app/common/scripts/check-for-update.ts
+++ b/src/web/app/common/scripts/check-for-update.ts
@@ -11,10 +11,6 @@ export default async function(mios: MiOS) {
// Clear cache (serive worker)
try {
navigator.serviceWorker.controller.postMessage('clear');
-
- navigator.serviceWorker.getRegistrations().then(registrations => {
- registrations.forEach(registration => registration.unregister());
- });
} catch (e) {
console.error(e);
}