Changed scope of serviceworker

This commit is contained in:
Kasper Rynning-Tønnesen
2016-04-27 01:03:33 +02:00
parent a25bcf8cb5
commit d216b5e271
2 changed files with 4 additions and 4 deletions

View File

@@ -54,7 +54,7 @@ var connection_options = {
'force new connection': true
};
/*
if (navigator.serviceWorker) {
navigator.serviceWorker.register('/static/service-worker.js', {scope: '/static/'})
.then(function (registration) {
@@ -65,7 +65,7 @@ if (navigator.serviceWorker) {
})
} else {
console.log('Service Worker is not supported in this browser.');
}*/
}
$().ready(function(){
if(!window.fromFront && window.location.pathname != "/") init();