mirror of
https://github.com/nlepage/go-wasm-http-server.git
synced 2025-03-10 17:29:10 +00:00
⚗️
This commit is contained in:
parent
03449bc4b9
commit
4cf9aa0961
1
sw.js
1
sw.js
@ -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))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user