From c455231699c17ea7fe7fdbc61d995dfa8e801fd3 Mon Sep 17 00:00:00 2001 From: fly_mc Date: Mon, 21 Oct 2024 22:56:31 +0800 Subject: [PATCH] note about navigate in sw.ts --- packages/sw/src/sw.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sw/src/sw.ts b/packages/sw/src/sw.ts index 677b9cd7c..8c90cd6db 100644 --- a/packages/sw/src/sw.ts +++ b/packages/sw/src/sw.ts @@ -53,7 +53,7 @@ globalThis.addEventListener('fetch', (event) => { event.request.headers.get('accept')?.includes('/html') || event.request.url.endsWith('/')) { isHTMLRequest = true; - } + } //If offlineContentHTML() is not needed anymore, add navigate. if (isHTMLRequest) { event.respondWith(