This commit is contained in:
Nicolas Lepage
2021-01-22 01:01:06 +01:00
parent 03449bc4b9
commit 4cf9aa0961

1
sw.js
View File

@@ -12,7 +12,6 @@ function registerWasmHTTPListener(wasm, base, args = []) {
})
const go = new Go()
go.env = { WASMHTTP_HANDLER_ID: handlerId, WASMHTTP_PATH: path }
go.argv = [wasm, ...args]
WebAssembly.instantiateStreaming(fetch(wasm), go.importObject).then(({ instance }) => go.run(instance))