Skip to content

Commit

Permalink
fix start log
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxkad committed Jan 16, 2024
1 parent 601d96f commit c79a5e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmds/mcla_wasm/js_globals.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ var (
// function
jsFetch = global.Get("fetch")
// API
console = global.Get("console")
caches = global.Get("caches")
sessionStorage = global.Get("sessionStorage")
localStorage = global.Get("localStorage")
Expand Down
2 changes: 1 addition & 1 deletion cmds/mcla_wasm/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func main() {
})
global.Set("MCLA", api)

fmt.Printf(LICENSE, version)
console.Call("log", fmt.Sprintf(LICENSE, version))
defer fmt.Printf("MCLA-%s unloaded\n", version)

<-bgCtx.Done()
Expand Down

0 comments on commit c79a5e5

Please sign in to comment.