mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Disabled serviceworker fully
This commit is contained in:
2
static/dist/embed.min.js
vendored
2
static/dist/embed.min.js
vendored
File diff suppressed because one or more lines are too long
4
static/dist/main.min.js
vendored
4
static/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -54,18 +54,6 @@ var connection_options = {
|
|||||||
'force new connection': true
|
'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(){
|
$().ready(function(){
|
||||||
if(!window.fromFront && window.location.pathname != "/") init();
|
if(!window.fromFront && window.location.pathname != "/") init();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user