Skip to content

Commit

Permalink
maybe
Browse files Browse the repository at this point in the history
  • Loading branch information
ledouxm committed Oct 10, 2024
1 parent d4b91c1 commit 982f391
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/frontend/src/service-worker/sw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,17 @@ import { getPicturesStore, getToUploadStore, getUploadStatusStore } from "../fea
import { get, keys, del, set } from "idb-keyval";

declare let self: ServiceWorkerGlobalScope;

skipWaiting();
clients.claim()

cleanupOutdatedCaches();
precacheAndRoute(self.__WB_MANIFEST);

self.skipWaiting();
self.clients.claim();


// self.skipWaiting();
// self.clients.claim();

// self.addEventListener("install", () => void );
// self.addEventListener("activate", () => void );
Expand Down

0 comments on commit 982f391

Please sign in to comment.