Skip to content

Commit

Permalink
Disable service-worker hash integrity check
Browse files Browse the repository at this point in the history
  • Loading branch information
Phoenox committed Dec 18, 2023
1 parent 5c51902 commit aa0ce7f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions SideQuest/SideQuest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.0" PrivateAssets="all"/>
</ItemGroup>

<ItemGroup>
<_ContentIncludedByDefault Remove="wwwroot\sample-data\weather.json" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Domain\Domain.csproj" />
<ProjectReference Include="..\Providers\Providers.csproj" />
Expand Down
2 changes: 1 addition & 1 deletion SideQuest/wwwroot/service-worker.published.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,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 }));
.map(asset => new Request(asset.url));
await caches.open(cacheName).then(cache => cache.addAll(assetsRequests));
}

Expand Down

0 comments on commit aa0ce7f

Please sign in to comment.