mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-08 04:28:49 +00:00
Fixed service-worker issues
This commit is contained in:
@@ -233,7 +233,7 @@ var Admin = {
|
||||
shuffle: function() {
|
||||
if(!offline) {
|
||||
//var u = Crypt.crypt_pass(Crypt.get_userpass(chan.toLowerCase()), true);
|
||||
if(u == undefined) u = "";
|
||||
//if(u == undefined) u = "";
|
||||
emit('shuffle', {channel: chan.toLowerCase()});
|
||||
} else {
|
||||
for(var x = 0; x < full_playlist.length; x++){
|
||||
|
||||
@@ -118,7 +118,7 @@ var fromFront = false;
|
||||
var fromChannel = false;
|
||||
|
||||
try{
|
||||
/*if (navigator.serviceWorker && window.location.host != "zoff.dev") {
|
||||
if (navigator.serviceWorker && window.location.host != "zoff.dev") {
|
||||
navigator.serviceWorker.register('/service-worker.js', {scope: '/'})
|
||||
.then(function (registration) {
|
||||
Helper.log(registration);
|
||||
@@ -128,13 +128,13 @@ try{
|
||||
});
|
||||
} else {
|
||||
Helper.log('Service Worker is not supported in this browser.');
|
||||
}*/
|
||||
|
||||
}
|
||||
/*
|
||||
navigator.serviceWorker.getRegistration('/').then(function(registration) {
|
||||
if(registration) {
|
||||
registration.unregister();
|
||||
}
|
||||
});
|
||||
});*/
|
||||
|
||||
} catch(e) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user