From 0e8af3730970b3f5b08e9c2f7a82431feb00e2af Mon Sep 17 00:00:00 2001
From: Josh Creek <8179928+jcreek@users.noreply.github.com>
Date: Fri, 12 Jul 2024 14:17:03 +0100
Subject: [PATCH] chore(*): Disable service worker
---
src/prompt-sw.ts | 50 ++++++++++++++++++++++++------------------------
1 file changed, 25 insertions(+), 25 deletions(-)
diff --git a/src/prompt-sw.ts b/src/prompt-sw.ts
index cb52c43..c1be7c4 100644
--- a/src/prompt-sw.ts
+++ b/src/prompt-sw.ts
@@ -1,32 +1,32 @@
-///
-///
-///
-///
-import {
- cleanupOutdatedCaches,
- createHandlerBoundToURL,
- precacheAndRoute,
- precache
-} from 'workbox-precaching';
-import { NavigationRoute, registerRoute } from 'workbox-routing';
+// ///
+// ///
+// ///
+// ///
+// import {
+// cleanupOutdatedCaches,
+// // createHandlerBoundToURL,
+// precacheAndRoute,
+// precache
+// } from 'workbox-precaching';
+// // import { NavigationRoute, registerRoute } from 'workbox-routing';
-declare let self: ServiceWorkerGlobalScope;
+// declare let self: ServiceWorkerGlobalScope;
-self.addEventListener('message', (event) => {
- if (event.data && event.data.type === 'SKIP_WAITING') self.skipWaiting();
-});
+// self.addEventListener('message', (event) => {
+// if (event.data && event.data.type === 'SKIP_WAITING') self.skipWaiting();
+// });
-// Add root route to precache manifest
-precache([{ url: '/', revision: null }]);
+// // Add root route to precache manifest
+// precache([{ url: '/', revision: null }]);
-// self.__WB_MANIFEST is default injection point
-precacheAndRoute(self.__WB_MANIFEST);
+// // self.__WB_MANIFEST is default injection point
+// precacheAndRoute(self.__WB_MANIFEST);
-// clean old assets
-cleanupOutdatedCaches();
+// // 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 }));