feat: remove unregister logic
This commit is contained in:
parent
fc9684fa99
commit
391cfe628b
2 changed files with 1 additions and 8 deletions
|
@ -1,3 +1,4 @@
|
|||
|
||||
const addResourcesToCache = async (resources) => {
|
||||
const cache = await caches.open('cozy-reader-app-v1');
|
||||
console.log('adding resources to cache...', resources)
|
||||
|
|
|
@ -40,14 +40,6 @@ if (url)
|
|||
<Serialize id="app-config" data={appConfig} />
|
||||
|
||||
<script>
|
||||
|
||||
navigator.serviceWorker.getRegistrations().then(registrations => {
|
||||
for (const registration of registrations) {
|
||||
console.log('unregistering sw...')
|
||||
registration.unregister();
|
||||
}
|
||||
});
|
||||
|
||||
const registerSW = async () => {
|
||||
if ("serviceWorker" in navigator) {
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue