diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-12-08 14:57:40 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-12-08 14:57:40 +0900 |
| commit | a9a581adcb04e5a4e9ae8195dfaa38823fa3a366 (patch) | |
| tree | 4f896fc92f0a87a26baad1ea4347ee1eac185237 /src/web/app/common/scripts/check-for-update.ts | |
| parent | Fix #952 (diff) | |
| download | sharkey-a9a581adcb04e5a4e9ae8195dfaa38823fa3a366.tar.gz sharkey-a9a581adcb04e5a4e9ae8195dfaa38823fa3a366.tar.bz2 sharkey-a9a581adcb04e5a4e9ae8195dfaa38823fa3a366.zip | |
Revert "Fix #952"
This reverts commit 8c70c9d6a0290c0d09e53e4a550d3e28c33059d2.
Diffstat (limited to 'src/web/app/common/scripts/check-for-update.ts')
| -rw-r--r-- | src/web/app/common/scripts/check-for-update.ts | 4 |
1 files changed, 0 insertions, 4 deletions
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); } |