File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ const PAGES_TO_CONTROL = ['/', '/index.html'];
99
1010const CACHE_NAME = 'frsource-cache-' + version ;
1111
12- const typedSelf = self as ServiceWorkerGlobalScope & typeof globalThis ;
12+ const typedSelf = self as unknown as ServiceWorkerGlobalScope &
13+ typeof globalThis ;
1314
1415urlsToCache . unshift (
1516 'https://www.frsource.org/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js' ,
@@ -48,6 +49,7 @@ typedSelf.addEventListener('activate', (event) => {
4849typedSelf . addEventListener ( 'fetch' , function ( event ) {
4950 event . respondWith (
5051 ( async ( ) => {
52+ if ( event . request . method !== 'GET' ) return fetch ( event . request ) ;
5153 if ( ! event . clientId ) return fetch ( event . request ) ;
5254
5355 const client = await typedSelf . clients . get ( event . clientId ) ;
You can’t perform that action at this time.
0 commit comments