mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
ui: Remove warnings of deadlock
Now gopherwasm fixed this problem by avoiding js.MakeFunc.
See also: 3fe87b73c0
This commit is contained in:
parent
8e9c3bd304
commit
311788dfe2
@ -18,7 +18,6 @@ package ui
|
||||
|
||||
import (
|
||||
"image"
|
||||
"runtime"
|
||||
"strconv"
|
||||
|
||||
"github.com/hajimehoshi/gopherwasm/js"
|
||||
@ -232,9 +231,6 @@ func init() {
|
||||
window.Call("addEventListener", "load", js.NewCallback(func([]js.Value) {
|
||||
close(ch)
|
||||
}))
|
||||
if runtime.GOARCH == "js" {
|
||||
js.Global.Get("console").Call("warn", "'deadlock' error is raised from GopherJS, but this is a known issue: https://github.com/gopherjs/gopherjs/issues/826")
|
||||
}
|
||||
<-ch
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user