diff --git a/src/browser/serviceWorker.ts b/src/browser/serviceWorker.ts index b7f2e9c5..1bee59bf 100644 --- a/src/browser/serviceWorker.ts +++ b/src/browser/serviceWorker.ts @@ -8,17 +8,6 @@ self.addEventListener("activate", (event: any) => { event.waitUntil((self as any).clients.claim()) }) -self.addEventListener("fetch", (event: any) => { - if (!navigator.onLine) { - event.respondWith( - new Promise((resolve) => { - resolve( - new Response("OFFLINE", { - status: 200, - statusText: "OK", - }), - ) - }), - ) - } +self.addEventListener("fetch", () => { + // Without this event handler we won't be recognized as a PWA. })