diff --git a/Pkmds.Web.styles.css b/Pkmds.Web.styles.css index 0b15c0f3..ad377dc9 100644 --- a/Pkmds.Web.styles.css +++ b/Pkmds.Web.styles.css @@ -27,12 +27,12 @@ z-index: 1000; } - #blazor-error-ui .dismiss[b-89m6tus79e] { - cursor: pointer; - position: absolute; - right: 0.75rem; - top: 0.5rem; - } +#blazor-error-ui .dismiss[b-89m6tus79e] { + cursor: pointer; + position: absolute; + right: 0.75rem; + top: 0.5rem; +} /* /Components/LetsGoBoxGrid.razor.rz.scp.css */ .box-grid-lets-go[b-807wpm749n] { width: 420px; @@ -90,7 +90,7 @@ .gen-3[b-wq5bilj2g5] { grid-template-columns: repeat(4, 1fr); - grid-gap: 0px; + grid-gap: 0; } /* /Components/PokemonStorageComponent.razor.rz.scp.css */ .select-container[b-nory1ms4jj] { diff --git a/Pkmds.Web.styles.css.br b/Pkmds.Web.styles.css.br index e5b90adc..cfbfaede 100644 Binary files a/Pkmds.Web.styles.css.br and b/Pkmds.Web.styles.css.br differ diff --git a/Pkmds.Web.styles.css.gz b/Pkmds.Web.styles.css.gz index c538f4b7..f32519df 100644 Binary files a/Pkmds.Web.styles.css.gz and b/Pkmds.Web.styles.css.gz differ diff --git a/_framework/Pkmds.Web.j7jp6nd305.wasm b/_framework/Pkmds.Web.j7jp6nd305.wasm deleted file mode 100644 index 6b06cfce..00000000 Binary files a/_framework/Pkmds.Web.j7jp6nd305.wasm and /dev/null differ diff --git a/_framework/Pkmds.Web.j7jp6nd305.wasm.br b/_framework/Pkmds.Web.j7jp6nd305.wasm.br deleted file mode 100644 index b1bdd252..00000000 Binary files a/_framework/Pkmds.Web.j7jp6nd305.wasm.br and /dev/null differ diff --git a/_framework/Pkmds.Web.j7jp6nd305.wasm.gz b/_framework/Pkmds.Web.j7jp6nd305.wasm.gz deleted file mode 100644 index b2924df5..00000000 Binary files a/_framework/Pkmds.Web.j7jp6nd305.wasm.gz and /dev/null differ diff --git a/_framework/Pkmds.Web.so9ic03bmg.wasm b/_framework/Pkmds.Web.so9ic03bmg.wasm new file mode 100644 index 00000000..6d0bbcc3 Binary files /dev/null and b/_framework/Pkmds.Web.so9ic03bmg.wasm differ diff --git a/_framework/Pkmds.Web.so9ic03bmg.wasm.br b/_framework/Pkmds.Web.so9ic03bmg.wasm.br new file mode 100644 index 00000000..3a569a92 Binary files /dev/null and b/_framework/Pkmds.Web.so9ic03bmg.wasm.br differ diff --git a/_framework/Pkmds.Web.so9ic03bmg.wasm.gz b/_framework/Pkmds.Web.so9ic03bmg.wasm.gz new file mode 100644 index 00000000..2a83bba8 Binary files /dev/null and b/_framework/Pkmds.Web.so9ic03bmg.wasm.gz differ diff --git a/_framework/System.Private.CoreLib.rsnmazr2i1.wasm b/_framework/System.Private.CoreLib.iw2tl928zg.wasm similarity index 52% rename from _framework/System.Private.CoreLib.rsnmazr2i1.wasm rename to _framework/System.Private.CoreLib.iw2tl928zg.wasm index 3ef0560e..44beb018 100644 Binary files a/_framework/System.Private.CoreLib.rsnmazr2i1.wasm and b/_framework/System.Private.CoreLib.iw2tl928zg.wasm differ diff --git a/_framework/System.Private.CoreLib.iw2tl928zg.wasm.br b/_framework/System.Private.CoreLib.iw2tl928zg.wasm.br new file mode 100644 index 00000000..7a65fd57 Binary files /dev/null and b/_framework/System.Private.CoreLib.iw2tl928zg.wasm.br differ diff --git a/_framework/System.Private.CoreLib.iw2tl928zg.wasm.gz b/_framework/System.Private.CoreLib.iw2tl928zg.wasm.gz new file mode 100644 index 00000000..87b2cb67 Binary files /dev/null and b/_framework/System.Private.CoreLib.iw2tl928zg.wasm.gz differ diff --git a/_framework/System.Private.CoreLib.rsnmazr2i1.wasm.br b/_framework/System.Private.CoreLib.rsnmazr2i1.wasm.br deleted file mode 100644 index 33e873aa..00000000 Binary files a/_framework/System.Private.CoreLib.rsnmazr2i1.wasm.br and /dev/null differ diff --git a/_framework/System.Private.CoreLib.rsnmazr2i1.wasm.gz b/_framework/System.Private.CoreLib.rsnmazr2i1.wasm.gz deleted file mode 100644 index d4b0aa02..00000000 Binary files a/_framework/System.Private.CoreLib.rsnmazr2i1.wasm.gz and /dev/null differ diff --git a/_framework/blazor.boot.json b/_framework/blazor.boot.json index 286c3515..7875ce76 100644 --- a/_framework/blazor.boot.json +++ b/_framework/blazor.boot.json @@ -1,7 +1,7 @@ { "mainAssemblyName": "Pkmds.Web", "resources": { - "hash": "sha256-wcao/s88hxXVqDHdyXq5EkRsl5BlvmvsQxDmWpus5RM=", + "hash": "sha256-9qzI6ve06URhK9Zo7wonOFMIGJKgH9kW697ctyqJ4b8=", "fingerprinting": { "KristofferStrube.Blazor.FileAPI.y7qr9qlbwg.wasm": "KristofferStrube.Blazor.FileAPI.wasm", "KristofferStrube.Blazor.FileSystem.l7rerd8wys.wasm": "KristofferStrube.Blazor.FileSystem.wasm", @@ -28,7 +28,7 @@ "Microsoft.JSInterop.WebAssembly.heoad7mujs.wasm": "Microsoft.JSInterop.WebAssembly.wasm", "MudBlazor.bt79um7eh4.wasm": "MudBlazor.wasm", "PKHeX.Core.uu1dzvwyb3.wasm": "PKHeX.Core.wasm", - "Pkmds.Web.j7jp6nd305.wasm": "Pkmds.Web.wasm", + "Pkmds.Web.so9ic03bmg.wasm": "Pkmds.Web.wasm", "System.Collections.Concurrent.e0ai6z0yd6.wasm": "System.Collections.Concurrent.wasm", "System.Collections.Immutable.tfyv1se26o.wasm": "System.Collections.Immutable.wasm", "System.Collections.NonGeneric.whuhpq856d.wasm": "System.Collections.NonGeneric.wasm", @@ -49,7 +49,7 @@ "System.Net.Primitives.6jn9jrgskj.wasm": "System.Net.Primitives.wasm", "System.Numerics.Vectors.njoswcucd8.wasm": "System.Numerics.Vectors.wasm", "System.ObjectModel.c2e7p32t1n.wasm": "System.ObjectModel.wasm", - "System.Private.CoreLib.rsnmazr2i1.wasm": "System.Private.CoreLib.wasm", + "System.Private.CoreLib.iw2tl928zg.wasm": "System.Private.CoreLib.wasm", "System.Private.Uri.vr4an2our0.wasm": "System.Private.Uri.wasm", "System.Runtime.InteropServices.JavaScript.3uvku0ibnu.wasm": "System.Runtime.InteropServices.JavaScript.wasm", "System.Runtime.InteropServices.aiefayfgmw.wasm": "System.Runtime.InteropServices.wasm", @@ -63,7 +63,7 @@ "System.6bp5k9v1ih.wasm": "System.wasm", "System.Web.HttpUtility.v1a9l0tpd6.wasm": "System.Web.HttpUtility.wasm", "dotnet.native.mn8jyqwbg8.js": "dotnet.native.js", - "dotnet.native.563t4iba1w.wasm": "dotnet.native.wasm", + "dotnet.native.tq5ti4z99m.wasm": "dotnet.native.wasm", "dotnet.js": "dotnet.js", "dotnet.runtime.o8gq1i8bk6.js": "dotnet.runtime.js", "icudt_CJK.tjcz0u77k5.dat": "icudt_CJK.dat", @@ -77,7 +77,7 @@ "dotnet.runtime.o8gq1i8bk6.js": "sha256-uD1t4tsPtmIHsx30SC4OztehGGaHVDksFD38rL2e3P4=" }, "wasmNative": { - "dotnet.native.563t4iba1w.wasm": "sha256-TfH/1sjVXPNR7jWimEnR5Yogj4FBcBRsbLB9CGAJyNw=" + "dotnet.native.tq5ti4z99m.wasm": "sha256-q+uS6szM0UD4shb8Xjaxzy8L/qoZTI7iJ4GfW1ijXqE=" }, "icu": { "icudt_CJK.tjcz0u77k5.dat": "sha256-SZLtQnRc0JkwqHab0VUVP7T3uBPSeYzxzDnpxPpUnHk=", @@ -85,7 +85,7 @@ "icudt_no_CJK.lfu7j35m59.dat": "sha256-L7sV7NEYP37/Qr2FPCePo5cJqRgTXRwGHuwF5Q+0Nfs=" }, "coreAssembly": { - "System.Private.CoreLib.rsnmazr2i1.wasm": "sha256-Bfixb8p2G47Dmt/zeGnth0EbiIGT196/q6XBcRVVgTI=", + "System.Private.CoreLib.iw2tl928zg.wasm": "sha256-DjNujt8dchbxEbjWHfD67h94EbiFi8Ql6kD2iTR3VKY=", "System.Runtime.InteropServices.JavaScript.3uvku0ibnu.wasm": "sha256-K5wa4QwWB8A0OrHM4yWK86Nl6ItEv9c3ctAASLMYLKo=" }, "assembly": { @@ -114,7 +114,7 @@ "Microsoft.JSInterop.WebAssembly.heoad7mujs.wasm": "sha256-99wG3VH14sWkwPaF5rX6YAcJvtAhDuqonwihvj2m5HA=", "MudBlazor.bt79um7eh4.wasm": "sha256-MYqsuEaYGGGacGamCS+Ik5RGFLkSwUZtDH+34TbEAZc=", "PKHeX.Core.uu1dzvwyb3.wasm": "sha256-pqkxoPaKIV8nT1iIS6MQOVfN6yOHPMyTXxnd+SyeFY0=", - "Pkmds.Web.j7jp6nd305.wasm": "sha256-gcCM16FQBnO90lEDvMQK4DKrkEbCkqxEvgPwCxgBFws=", + "Pkmds.Web.so9ic03bmg.wasm": "sha256-dIIfgHmg0Rf2KpIUg75D7nNMHUYoPY4GUkhnLyHeHkE=", "System.Collections.Concurrent.e0ai6z0yd6.wasm": "sha256-0krbnHoUAr7pDBA3lGAJe/dxkCl9S2UI82RWcScE4JI=", "System.Collections.Immutable.tfyv1se26o.wasm": "sha256-505g8cD2iYGVWzk7qdBqx8fav/L8AK2EZPQwL6+pcKw=", "System.Collections.NonGeneric.whuhpq856d.wasm": "sha256-pNWrDePWfKodlJjxBCpA0AeYDZNBM9z6ukop8vIGGgI=", diff --git a/_framework/blazor.boot.json.br b/_framework/blazor.boot.json.br index f5b072d6..23035637 100644 Binary files a/_framework/blazor.boot.json.br and b/_framework/blazor.boot.json.br differ diff --git a/_framework/blazor.boot.json.gz b/_framework/blazor.boot.json.gz index 442652fb..14297f0c 100644 Binary files a/_framework/blazor.boot.json.gz and b/_framework/blazor.boot.json.gz differ diff --git a/_framework/dotnet.native.563t4iba1w.wasm.br b/_framework/dotnet.native.563t4iba1w.wasm.br deleted file mode 100644 index a1182c1f..00000000 Binary files a/_framework/dotnet.native.563t4iba1w.wasm.br and /dev/null differ diff --git a/_framework/dotnet.native.563t4iba1w.wasm b/_framework/dotnet.native.tq5ti4z99m.wasm similarity index 99% rename from _framework/dotnet.native.563t4iba1w.wasm rename to _framework/dotnet.native.tq5ti4z99m.wasm index f4a7c954..b7918839 100755 Binary files a/_framework/dotnet.native.563t4iba1w.wasm and b/_framework/dotnet.native.tq5ti4z99m.wasm differ diff --git a/_framework/dotnet.native.tq5ti4z99m.wasm.br b/_framework/dotnet.native.tq5ti4z99m.wasm.br new file mode 100644 index 00000000..ffd244fb Binary files /dev/null and b/_framework/dotnet.native.tq5ti4z99m.wasm.br differ diff --git a/_framework/dotnet.native.563t4iba1w.wasm.gz b/_framework/dotnet.native.tq5ti4z99m.wasm.gz similarity index 99% rename from _framework/dotnet.native.563t4iba1w.wasm.gz rename to _framework/dotnet.native.tq5ti4z99m.wasm.gz index 4bf3f159..b6b420b6 100644 Binary files a/_framework/dotnet.native.563t4iba1w.wasm.gz and b/_framework/dotnet.native.tq5ti4z99m.wasm.gz differ diff --git a/css/app.css b/css/app.css index 4f785507..fc20f362 100644 --- a/css/app.css +++ b/css/app.css @@ -1,8 +1,5 @@ body, html { - padding-bottom: env(safe-area-inset-bottom, 16px); - padding-top: env(safe-area-inset-top); - padding-left: env(safe-area-inset-left, 8px); - padding-right: env(safe-area-inset-right); + padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom, 16px) env(safe-area-inset-left, 8px); box-sizing: border-box; } @@ -12,12 +9,12 @@ body, html { box-sizing: border-box; } -pkm-sprite { +.pkm-sprite { object-fit: contain; align-self: center; } -item-sprite { +.item-sprite { object-fit: contain; align-self: center; } @@ -74,19 +71,19 @@ item-sprite { margin: 20vh auto 1rem auto; } - .loading-progress circle { - fill: none; - stroke: #e0e0e0; - stroke-width: 0.6rem; - transform-origin: 50% 50%; - transform: rotate(-90deg); - } +.loading-progress circle { + fill: none; + stroke: #e0e0e0; + stroke-width: 0.6rem; + transform-origin: 50% 50%; + transform: rotate(-90deg); +} - .loading-progress circle:last-child { - stroke: #1b6ec2; - stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%; - transition: stroke-dasharray 0.05s ease-in-out; - } +.loading-progress circle:last-child { + stroke: #1b6ec2; + stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%; + transition: stroke-dasharray 0.05s ease-in-out; +} .loading-progress-text { position: absolute; @@ -95,6 +92,6 @@ item-sprite { inset: calc(20vh + 3.25rem) 0 auto 0.2rem; } - .loading-progress-text:after { - content: var(--blazor-load-percentage-text, "Loading"); - } +.loading-progress-text:after { + content: var(--blazor-load-percentage-text, "Loading"); +} diff --git a/css/app.css.br b/css/app.css.br index 8b48a881..e68298d6 100644 Binary files a/css/app.css.br and b/css/app.css.br differ diff --git a/css/app.css.gz b/css/app.css.gz index 4be9fd7e..1dae82fc 100644 Binary files a/css/app.css.gz and b/css/app.css.gz differ diff --git a/js/fileSave.js b/js/fileSave.js index d106bef8..2f852ede 100644 --- a/js/fileSave.js +++ b/js/fileSave.js @@ -4,13 +4,13 @@ suggestedName: fileName, types: [{ description: description, - accept: { 'application/octet-stream': [extension] } + accept: {'application/octet-stream': [extension]} }] }; const handle = await window.showSaveFilePicker(opts); const writable = await handle.createWritable(); - await writable.write(new Blob([new Uint8Array(byteArray)], { type: "application/octet-stream" })); + await writable.write(new Blob([new Uint8Array(byteArray)], {type: "application/octet-stream"})); await writable.close(); } catch (ex) { console.error(ex); diff --git a/js/fileSave.js.br b/js/fileSave.js.br index 49226340..1e749e54 100644 Binary files a/js/fileSave.js.br and b/js/fileSave.js.br differ diff --git a/js/fileSave.js.gz b/js/fileSave.js.gz index b0905759..09c542e0 100644 Binary files a/js/fileSave.js.gz and b/js/fileSave.js.gz differ diff --git a/service-worker-assets.js b/service-worker-assets.js index a64b6af6..c15bfc30 100644 --- a/service-worker-assets.js +++ b/service-worker-assets.js @@ -1,12 +1,12 @@ self.assetsManifest = { - "version": "GKx4/oU0", + "version": "eFMdYdpJ", "assets": [ { "hash": "sha256-yNqBFGEPKtioUDFOATPNOwYEYkKwJWjCCa3Zo5oRY20=", "url": "BrowserNotSupported.html" }, { - "hash": "sha256-FiT0dyiY7b/LzPH6oS5XefLjDFC8mB6nngY4gxfQtNY=", + "hash": "sha256-NNzZNr6QuEQ6sHx0JJ+5rHy2MLDfDcnmwLt/Xf6spEA=", "url": "Pkmds.Web.styles.css" }, { @@ -138,8 +138,8 @@ self.assetsManifest = { "url": "_framework/PKHeX.Core.uu1dzvwyb3.wasm" }, { - "hash": "sha256-gcCM16FQBnO90lEDvMQK4DKrkEbCkqxEvgPwCxgBFws=", - "url": "_framework/Pkmds.Web.j7jp6nd305.wasm" + "hash": "sha256-dIIfgHmg0Rf2KpIUg75D7nNMHUYoPY4GUkhnLyHeHkE=", + "url": "_framework/Pkmds.Web.so9ic03bmg.wasm" }, { "hash": "sha256-nmhUPBjB8ZbEN0U5j2acgnW4fkbSYlov7U3e30Lsp8A=", @@ -226,8 +226,8 @@ self.assetsManifest = { "url": "_framework/System.ObjectModel.c2e7p32t1n.wasm" }, { - "hash": "sha256-Bfixb8p2G47Dmt/zeGnth0EbiIGT196/q6XBcRVVgTI=", - "url": "_framework/System.Private.CoreLib.rsnmazr2i1.wasm" + "hash": "sha256-DjNujt8dchbxEbjWHfD67h94EbiFi8Ql6kD2iTR3VKY=", + "url": "_framework/System.Private.CoreLib.iw2tl928zg.wasm" }, { "hash": "sha256-VQrGdEQGCgvYjhJNIaiy2xeCST9G5Pw3EsQXp48DlQ8=", @@ -274,7 +274,7 @@ self.assetsManifest = { "url": "_framework/System.Web.HttpUtility.v1a9l0tpd6.wasm" }, { - "hash": "sha256-t4At4Hbr6JLRXsghaKpJ18g2oOurfqOJv5GqqlVeWf0=", + "hash": "sha256-bHQhrEmBGzupAzG4BFn/e2MLobAhZHzHuHkvofbW0bM=", "url": "_framework/blazor.boot.json" }, { @@ -285,14 +285,14 @@ self.assetsManifest = { "hash": "sha256-GbKWK+esqeL1E24rCVsCvsQCzaJM65aknWOT1UhUYa4=", "url": "_framework/dotnet.js" }, - { - "hash": "sha256-TfH/1sjVXPNR7jWimEnR5Yogj4FBcBRsbLB9CGAJyNw=", - "url": "_framework/dotnet.native.563t4iba1w.wasm" - }, { "hash": "sha256-boNnJNkQt1n/HU3RNP9bK4EkRtwXzVp2o0dFk860Xzk=", "url": "_framework/dotnet.native.mn8jyqwbg8.js" }, + { + "hash": "sha256-q+uS6szM0UD4shb8Xjaxzy8L/qoZTI7iJ4GfW1ijXqE=", + "url": "_framework/dotnet.native.tq5ti4z99m.wasm" + }, { "hash": "sha256-uD1t4tsPtmIHsx30SC4OztehGGaHVDksFD38rL2e3P4=", "url": "_framework/dotnet.runtime.o8gq1i8bk6.js" @@ -310,7 +310,7 @@ self.assetsManifest = { "url": "_framework/icudt_no_CJK.lfu7j35m59.dat" }, { - "hash": "sha256-FOuev+TYVTKH74EcYuBLDODhwyy8UlPO/JJ9Er8I7zU=", + "hash": "sha256-cz+/YtbKGnbnVei0F3ZX7zuL2wR3eHPWACAEVbZMw5Q=", "url": "css/app.css" }, { @@ -330,7 +330,7 @@ self.assetsManifest = { "url": "index.html" }, { - "hash": "sha256-FxOuskBB/Bf1l3xFM78xh2lVy95o+ZA6Iik6FTQya0k=", + "hash": "sha256-AUqipfFodiiPV909HhNT94CHBB4uRedXOF8it8d5jjk=", "url": "js/fileSave.js" }, { diff --git a/service-worker-assets.js.br b/service-worker-assets.js.br index 03b7957b..2c6acb12 100644 Binary files a/service-worker-assets.js.br and b/service-worker-assets.js.br differ diff --git a/service-worker-assets.js.gz b/service-worker-assets.js.gz index c8c0c8f2..0635561d 100644 Binary files a/service-worker-assets.js.gz and b/service-worker-assets.js.gz differ diff --git a/service-worker.js b/service-worker.js index e9c99703..c9257969 100644 --- a/service-worker.js +++ b/service-worker.js @@ -1,4 +1,4 @@ -/* Manifest version: GKx4/oU0 */ +/* Manifest version: eFMdYdpJ */ // Caution! Be sure you understand the caveats before publishing an application with // offline support. See https://aka.ms/blazor-offline-considerations @@ -18,8 +18,8 @@ const cacheNamePrefix = 'offline-cache-'; const CACHE_VERSION = '%%CACHE_VERSION%%' const cacheName = `${cacheNamePrefix}${self.assetsManifest.version}${CACHE_VERSION}`; -const offlineAssetsInclude = [ /\.dll$/, /\.pdb$/, /\.wasm/, /\.html/, /\.js$/, /\.json$/, /\.css$/, /\.woff$/, /\.png$/, /\.jpe?g$/, /\.gif$/, /\.ico$/, /\.blat$/, /\.dat$/ ]; -const offlineAssetsExclude = [ /^service-worker\.js$/ ]; +const offlineAssetsInclude = [/\.dll$/, /\.pdb$/, /\.wasm/, /\.html/, /\.js$/, /\.json$/, /\.css$/, /\.woff$/, /\.png$/, /\.jpe?g$/, /\.gif$/, /\.ico$/, /\.blat$/, /\.dat$/]; +const offlineAssetsExclude = [/^service-worker\.js$/]; // Replace with your base path if you are hosting on a subfolder. Ensure there is a trailing '/'. const base = "/"; @@ -33,7 +33,7 @@ async function onInstall(event) { const assetsRequests = self.assetsManifest.assets .filter(asset => offlineAssetsInclude.some(pattern => pattern.test(asset.url))) .filter(asset => !offlineAssetsExclude.some(pattern => pattern.test(asset.url))) - .map(asset => new Request(asset.url, { integrity: asset.hash, cache: 'no-cache' })); + .map(asset => new Request(asset.url, {integrity: asset.hash, cache: 'no-cache'})); await caches.open(cacheName).then(cache => cache.addAll(assetsRequests)); } diff --git a/service-worker.js.br b/service-worker.js.br index 3af599c7..bb70f9ae 100644 Binary files a/service-worker.js.br and b/service-worker.js.br differ diff --git a/service-worker.js.gz b/service-worker.js.gz index d850468b..2747dbe8 100644 Binary files a/service-worker.js.gz and b/service-worker.js.gz differ diff --git a/service-worker.published.js b/service-worker.published.js index 6fc64e40..2a1ec645 100644 --- a/service-worker.published.js +++ b/service-worker.published.js @@ -14,11 +14,11 @@ self.addEventListener('activate', event => { self.addEventListener('fetch', event => event.respondWith(onFetch(event))); const cacheNamePrefix = 'offline-cache-'; -const CACHE_VERSION = '12228093214' +const CACHE_VERSION = '12383658598' const cacheName = `${cacheNamePrefix}${self.assetsManifest.version}${CACHE_VERSION}`; -const offlineAssetsInclude = [ /\.dll$/, /\.pdb$/, /\.wasm/, /\.html/, /\.js$/, /\.json$/, /\.css$/, /\.woff$/, /\.png$/, /\.jpe?g$/, /\.gif$/, /\.ico$/, /\.blat$/, /\.dat$/ ]; -const offlineAssetsExclude = [ /^service-worker\.js$/ ]; +const offlineAssetsInclude = [/\.dll$/, /\.pdb$/, /\.wasm/, /\.html/, /\.js$/, /\.json$/, /\.css$/, /\.woff$/, /\.png$/, /\.jpe?g$/, /\.gif$/, /\.ico$/, /\.blat$/, /\.dat$/]; +const offlineAssetsExclude = [/^service-worker\.js$/]; // Replace with your base path if you are hosting on a subfolder. Ensure there is a trailing '/'. const base = "/"; @@ -32,7 +32,7 @@ async function onInstall(event) { const assetsRequests = self.assetsManifest.assets .filter(asset => offlineAssetsInclude.some(pattern => pattern.test(asset.url))) .filter(asset => !offlineAssetsExclude.some(pattern => pattern.test(asset.url))) - .map(asset => new Request(asset.url, { integrity: asset.hash, cache: 'no-cache' })); + .map(asset => new Request(asset.url, {integrity: asset.hash, cache: 'no-cache'})); await caches.open(cacheName).then(cache => cache.addAll(assetsRequests)); }