mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Turned off serviceworker
This commit is contained in:
@@ -54,7 +54,7 @@ var connection_options = {
|
|||||||
'force new connection': true
|
'force new connection': true
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
if (navigator.serviceWorker) {
|
if (navigator.serviceWorker) {
|
||||||
navigator.serviceWorker.register('/service-worker.js', {scope: '/'})
|
navigator.serviceWorker.register('/service-worker.js', {scope: '/'})
|
||||||
.then(function (registration) {
|
.then(function (registration) {
|
||||||
@@ -66,7 +66,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();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user