mirror of
https://github.com/KevinMidboe/zoff.git
synced 2026-02-10 19:39:35 +00:00
Disabled serviceworker fully
This commit is contained in:
@@ -54,18 +54,6 @@ var connection_options = {
|
||||
'force new connection': true
|
||||
};
|
||||
|
||||
if (navigator.serviceWorker) {
|
||||
navigator.serviceWorker.register('/service-worker.js')
|
||||
.then(function (registration) {
|
||||
console.log(registration);
|
||||
})
|
||||
.catch(function (e) {
|
||||
console.error(e);
|
||||
})
|
||||
} else {
|
||||
console.log('Service Worker is not supported in this browser.');
|
||||
}
|
||||
|
||||
$().ready(function(){
|
||||
if(!window.fromFront && window.location.pathname != "/") init();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user