mirror of
https://github.com/KevinMidboe/zoff.git
synced 2026-09-24 08:49:06 +00:00
unregistered serviceworker
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+2
-2
File diff suppressed because one or more lines are too long
@@ -60,6 +60,12 @@ var connection_options = {
|
|||||||
var fromFront = false;
|
var fromFront = false;
|
||||||
var fromChannel = false;
|
var fromChannel = false;
|
||||||
|
|
||||||
|
if ('serviceWorker' in navigator) {
|
||||||
|
navigator.serviceWorker.getRegistration().then(function(r) {
|
||||||
|
r.unregister();
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
$().ready(function(){
|
$().ready(function(){
|
||||||
if(!fromFront && window.location.pathname != "/") init();
|
if(!fromFront && window.location.pathname != "/") init();
|
||||||
else if(!fromChannel && window.location.pathname == "/"){
|
else if(!fromChannel && window.location.pathname == "/"){
|
||||||
|
|||||||
Reference in New Issue
Block a user