mirror of
https://github.com/paricafe/misskey.git
synced 2025-03-31 14:29:28 -05:00
removed navigate in sw
This commit is contained in:
parent
2906fa13a1
commit
65fe0f7381
1 changed files with 1 additions and 2 deletions
|
@ -51,8 +51,7 @@ globalThis.addEventListener('fetch', (event) => {
|
|||
|
||||
if (event.request.headers.get('sec-fetch-dest') === 'document' ||
|
||||
event.request.headers.get('accept')?.includes('/html') ||
|
||||
event.request.url.endsWith('/') ||
|
||||
event.request.mode === 'navigate') { //navigate may cause offlineContentHTML doesn't work but doesn' matter
|
||||
event.request.url.endsWith('/')) {
|
||||
isHTMLRequest = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue