Updated and removed serviceworker. Will add again shortly

This commit is contained in:
Kasper Rynning-Tønnesen
2016-08-13 17:45:05 +02:00
parent 970395a4d7
commit c3189d6e30
3 changed files with 16 additions and 9 deletions

View File

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