This commit is contained in:
Nicolas Lepage
2019-11-27 08:53:34 +01:00
parent 6049930e90
commit 5a9f7c57a2
3 changed files with 35 additions and 14 deletions

View File

@@ -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
}