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
|
||||
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 }));
|
||||
|
||||
Reference in New Issue
Block a user