Turned off serviceworker

This commit is contained in:
Kasper Rynning-Tønnesen
2016-05-02 14:36:17 +02:00
parent 93bae922e9
commit 4da052600e

View File

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