File tree Expand file tree Collapse file tree 1 file changed +0
-2
lines changed
TiredDoctorManhattan.Wasm/wwwroot Expand file tree Collapse file tree 1 file changed +0
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ const offlineAssetsExclude = [/^service-worker\.js$/];
2323// Replace with your base path if you are hosting on a subfolder. Ensure there is a trailing '/'.
2424const base = "/" ;
2525const baseUrl = new URL ( base , self . origin ) ;
26- const manifestUrlList = self . assetsManifest . assets . map ( asset => new URL ( asset . url , baseUrl ) . href ) ;
2726
2827async function onInstall ( event ) {
2928 console . info ( 'Service worker: Install' ) ;
@@ -52,7 +51,6 @@ async function onFetch(event) {
5251 // For all navigation requests, try to serve index.html from cache
5352 // If you need some URLs to be server-rendered, edit the following check to exclude those URLs
5453 const shouldServeIndexHtml = event . request . mode === 'navigate'
55- && ! manifestUrlList . some ( url => url === event . request . url ) ;
5654
5755 const request = shouldServeIndexHtml ? 'index.html' : event . request ;
5856 const cache = await caches . open ( cacheName ) ;
You can’t perform that action at this time.
0 commit comments