mirror of
https://github.com/KevinMidboe/zoff.git
synced 2026-01-02 07:36:17 +00:00
Hopefully removed serviceworker completely
This commit is contained in:
2
static/dist/main.min.js
vendored
2
static/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -61,16 +61,7 @@ var fromFront = false;
|
|||||||
var fromChannel = false;
|
var fromChannel = false;
|
||||||
|
|
||||||
if (navigator.serviceWorker) {
|
if (navigator.serviceWorker) {
|
||||||
navigator.serviceWorker.register('/service-worker.js', {scope: '/'})
|
navigator.serviceWorker.getRegistration('/').then(function(registration) {registration.unregister() ;});
|
||||||
.then(function (registration) {
|
|
||||||
console.log(registration);
|
|
||||||
})
|
|
||||||
.catch(function (e) {
|
|
||||||
console.error(e);
|
|
||||||
});
|
|
||||||
navigator.serviceWorker.getRegistration('/').then(function(registration) {
|
|
||||||
registration.unregister();
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
console.log('Service Worker is not supported in this browser.');
|
console.log('Service Worker is not supported in this browser.');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user