removed serviceworker

This commit is contained in:
Kasper Rynning-Tønnesen
2016-04-27 12:34:07 +02:00
parent 9e15a8ade6
commit 20cf38b4ca
4 changed files with 185 additions and 49 deletions

View File

@@ -54,9 +54,9 @@ var connection_options = {
'force new connection': true
};
/*
if (navigator.serviceWorker) {
navigator.serviceWorker.register('/static/service-worker.js', {scope: '/static/'})
navigator.serviceWorker.register('/service-worker.js', {scope: '/'})
.then(function (registration) {
console.log(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();
@@ -74,7 +74,7 @@ $().ready(function(){
function init(){
chan = window.chan == undefined ? $("#chan").html() : window.chan;
chan = $("#chan").html();
console.log(chan);
mobile_beginning = window.mobilecheck();