Skip to content

Commit

Permalink
Fix prefetch arrayBuffer call
Browse files Browse the repository at this point in the history
  • Loading branch information
bglw committed Jan 31, 2023
1 parent 15a161a commit 50e7fef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript-modules/engines/hugo-engine/lib/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class Engine {

let compressedBuffer;
if (prefetched[compressedWasmPath]) {
compressedBuffer = prefetched[compressedWasmPath]?.arrayBuffer();
compressedBuffer = await prefetched[compressedWasmPath]?.arrayBuffer();
this.loadedFrom = "prefetch";
} else {
const compressedResponse = await fetch(compressedWasmOrigin);
Expand Down

0 comments on commit 50e7fef

Please sign in to comment.