Disabled serviceworker fully

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

File diff suppressed because one or more lines are too long

View File

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