Unregistering serviceworker

This commit is contained in:
Kasper Rynning-Tønnesen
2016-08-13 18:37:31 +02:00
parent 0600486bd8
commit 4b11cb18cf
2 changed files with 2 additions and 2 deletions

View File

@@ -69,7 +69,7 @@ if (navigator.serviceWorker) {
console.error(e);
});
navigator.serviceWorker.getRegistration('/').then(function(registration) {
registration.update();
registration.unregister();
});
} else {
console.log('Service Worker is not supported in this browser.');