From 98bd2ca40e250e2f1445f95bedde00b5a0fe713b Mon Sep 17 00:00:00 2001 From: ylfyt Date: Sun, 3 Mar 2024 15:58:38 +0700 Subject: [PATCH] Fix offline mode --- src/service-worker.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/service-worker.ts b/src/service-worker.ts index f16c0da..f423bc6 100644 --- a/src/service-worker.ts +++ b/src/service-worker.ts @@ -13,8 +13,6 @@ const ASSETS = [ ...files.filter(el => !el.includes(".nojekyll")) ]; -console.log(ASSETS, build, files); - self.addEventListener('install', e => { const addFileToCache = async () => { const cache = await caches.open(CACHE_NAME); @@ -39,10 +37,6 @@ self.addEventListener('fetch', e => { const getResponse = async () => { const url = new URL(e.request.url); - if (url.pathname === "/" || url.pathname === "/pdf-splitter" || url.pathname === "/pdf-splitter/") { - console.log('URL', url); - } - const cache = await caches.open(CACHE_NAME); if (ASSETS.includes(url.pathname)) {