mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Removed please
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
@@ -60,12 +60,15 @@ var connection_options = {
|
|||||||
var fromFront = false;
|
var fromFront = false;
|
||||||
var fromChannel = false;
|
var fromChannel = false;
|
||||||
|
|
||||||
if (navigator.serviceWorker) {
|
if ('serviceWorker' in navigator) {
|
||||||
navigator.serviceWorker.getRegistration('/').then(function(registration) {registration.unregister() ;});
|
navigator.serviceWorker.getRegistration().then(function(r) {
|
||||||
} else {
|
try {
|
||||||
console.log('Service Worker is not supported in this browser.');
|
r.unregister();
|
||||||
|
} catch(e) {}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$().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