note about navigate in sw.ts

This commit is contained in:
fly_mc 2024-10-21 22:56:31 +08:00
parent 500c1f3eeb
commit c455231699

View file

@ -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(