Changed .gitignore, and started using service-worker again

This commit is contained in:
Kasper Rynning-Tønnesen
2017-05-03 19:26:02 +02:00
parent c9af861073
commit 730cf0d724
6 changed files with 15 additions and 17 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

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