mirror of
https://github.com/KevinMidboe/zoff.git
synced 2026-01-09 11:05:33 +00:00
Better handling of removing service-worker
This commit is contained in:
@@ -108,7 +108,9 @@ try{/*
|
||||
}*/
|
||||
|
||||
navigator.serviceWorker.getRegistration('/').then(function(registration) {
|
||||
registration.unregister();
|
||||
if(registration) {
|
||||
registration.unregister();
|
||||
}
|
||||
});
|
||||
|
||||
} catch(e) {}
|
||||
|
||||
Reference in New Issue
Block a user