Skip to content

Commit 2ef6130

Browse files
Update src/Components/Web.JS/src/Platform/WebAssemblyResourceLoader.ts
Co-Authored-By: Pranav K <[email protected]>
1 parent fb7782f commit 2ef6130

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Components/Web.JS/src/Platform/WebAssemblyResourceLoader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export class WebAssemblyResourceLoader {
120120
const responseBytes = (performanceEntry && performanceEntry.encodedBodySize) || undefined;
121121
this.networkLoads[name] = { responseBytes };
122122

123-
// crypto.subtle is only enabled on localhost and HTTPS origins
123+
// crypto.subtle is only enabled on localhost or HTTPS origins
124124
// We only write to the cache if we can validate the content hashes
125125
if (typeof crypto !== 'undefined' && !!crypto.subtle) {
126126
await assertContentHashMatchesAsync(name, responseBuffer, expectedContentHash);

0 commit comments

Comments
 (0)