From 90c18f64904b0e3d16a45ad29348765b7d8aa8db Mon Sep 17 00:00:00 2001 From: RH+ Date: Fri, 7 Feb 2025 19:49:04 +0900 Subject: [PATCH] Fix: Remove url for debugging --- public/sw.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/public/sw.js b/public/sw.js index 5d4296d1..6dc58c71 100644 --- a/public/sw.js +++ b/public/sw.js @@ -87,19 +87,15 @@ self.addEventListener('fetch', (event) => { async function checkCache(url){ const cache = await caches.open('risuCache') - const origURL = url.pathname; - if(url.pathname.startsWith("/sw/check")) { url.pathname = "/sw/img" + url.pathname.slice(9); return new Response(JSON.stringify({ - "able": !!(await cache.match(url)), - "origURL": origURL, + "able": !!(await cache.match(url)) })) } return new Response(JSON.stringify({ - "able": !!(await cache.match(url)), - "origURL": origURL, + "able": !!(await cache.match(url)) })) }