diff --git a/src/prompt-sw.ts b/src/prompt-sw.ts index 71722de..cb52c43 100644 --- a/src/prompt-sw.ts +++ b/src/prompt-sw.ts @@ -25,8 +25,8 @@ precacheAndRoute(self.__WB_MANIFEST); // clean old assets cleanupOutdatedCaches(); -let allowlist: undefined | RegExp[]; -if (import.meta.env.DEV) allowlist = [/^\/$/]; +// let allowlist: undefined | RegExp[]; +// if (import.meta.env.DEV) allowlist = [/^\/$/]; -// to allow work offline -registerRoute(new NavigationRoute(createHandlerBoundToURL('/'), { allowlist })); +// // to allow work offline +// registerRoute(new NavigationRoute(createHandlerBoundToURL('/'), { allowlist }));