Removed serviceworker completely

This commit is contained in:
Kasper Rynning-Tønnesen
2017-05-09 12:28:56 +02:00
parent 4851a8a4ed
commit 2d00c1df13
4 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

View File

@@ -93,7 +93,7 @@ var connection_options = {
var fromFront = false;
var fromChannel = false;
try{
try{/*
if (navigator.serviceWorker && window.location.host != "zoff.dev") {
navigator.serviceWorker.register('/service-worker.js', {scope: '/'})
.then(function (registration) {
@@ -104,10 +104,10 @@ try{
});
} else {
Helper.log('Service Worker is not supported in this browser.');
}/*
}*/
navigator.serviceWorker.getRegistration('/').then(function(registration) {
registration.unregister();
});*/
});
} catch(e) {}