feat: remove unregister logic

This commit is contained in:
Ayo Ayco 2024-08-02 17:26:53 +02:00
parent fc9684fa99
commit 391cfe628b
2 changed files with 1 additions and 8 deletions

View file

@ -1,3 +1,4 @@
const addResourcesToCache = async (resources) => {
const cache = await caches.open('cozy-reader-app-v1');
console.log('adding resources to cache...', resources)

View file

@ -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 {