From afc5ae208605c0d96b04d1294f67584b8e3bdfbe Mon Sep 17 00:00:00 2001 From: Ugric Date: Sat, 25 Mar 2023 19:52:07 +0000 Subject: [PATCH] dont require clone --- wasm/argon_wasm.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wasm/argon_wasm.js b/wasm/argon_wasm.js index 0edaeb3..187509b 100644 --- a/wasm/argon_wasm.js +++ b/wasm/argon_wasm.js @@ -666,9 +666,8 @@ window.ArgonWASMRuntime = async (config = {}) => { } }; const go = new Go(); - const file = fetch(path); const result = await WebAssembly.instantiateStreaming( - (await file).clone(), + fetch(path), go.importObject );