mirror of
https://github.com/KevinMidboe/zoff.git
synced 2026-01-10 03:25:33 +00:00
unregistered serviceworker
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
@@ -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