mirror of
https://github.com/nlepage/go-wasm-http-server.git
synced 2026-01-12 01:59:14 +00:00
🚧
This commit is contained in:
2
serve.go
2
serve.go
@@ -55,7 +55,7 @@ func Serve(handler http.Handler) func() {
|
||||
return res.Value()
|
||||
})
|
||||
|
||||
js.Global().Get("wasmhttp").Call("RegisterHandler", os.Getenv("WASMHTTP_HANDLER_ID"), cb)
|
||||
js.Global().Get("wasmhttp").Call("registerHandler", os.Getenv("WASMHTTP_HANDLER_ID"), cb)
|
||||
|
||||
return cb.Release
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user