mirror of
https://github.com/jcreek/LivingDexTracker.git
synced 2026-07-13 19:13:43 +00:00
fix(*): Disable some functionality of service worker
This commit is contained in:
+4
-4
@@ -25,8 +25,8 @@ precacheAndRoute(self.__WB_MANIFEST);
|
|||||||
// clean old assets
|
// clean old assets
|
||||||
cleanupOutdatedCaches();
|
cleanupOutdatedCaches();
|
||||||
|
|
||||||
let allowlist: undefined | RegExp[];
|
// let allowlist: undefined | RegExp[];
|
||||||
if (import.meta.env.DEV) allowlist = [/^\/$/];
|
// if (import.meta.env.DEV) allowlist = [/^\/$/];
|
||||||
|
|
||||||
// to allow work offline
|
// // to allow work offline
|
||||||
registerRoute(new NavigationRoute(createHandlerBoundToURL('/'), { allowlist }));
|
// registerRoute(new NavigationRoute(createHandlerBoundToURL('/'), { allowlist }));
|
||||||
|
|||||||
Reference in New Issue
Block a user