diff --git a/src/browser/serviceWorker.ts b/src/browser/serviceWorker.ts index b7f2e9c59..1bee59bfb 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. })