Removed please

This commit is contained in:
Kasper Rynning-Tønnesen
2016-08-13 18:51:10 +02:00
parent cdca1f136e
commit 3a36fafdc6
2 changed files with 8 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@@ -60,12 +60,15 @@ var connection_options = {
var fromFront = false;
var fromChannel = false;
if (navigator.serviceWorker) {
navigator.serviceWorker.getRegistration('/').then(function(registration) {registration.unregister() ;});
} else {
console.log('Service Worker is not supported in this browser.');
if ('serviceWorker' in navigator) {
navigator.serviceWorker.getRegistration().then(function(r) {
try {
r.unregister();
} catch(e) {}
});
}
$().ready(function(){
if(!fromFront && window.location.pathname != "/") init();
else if(!fromChannel && window.location.pathname == "/"){