ui: Remove warnings of deadlock

Now gopherwasm fixed this problem by avoiding js.MakeFunc.

See also: 3fe87b73c0
This commit is contained in:
Hajime Hoshi 2018-05-27 04:10:12 +09:00
parent 8e9c3bd304
commit 311788dfe2

View File

@ -18,7 +18,6 @@ package ui
import ( import (
"image" "image"
"runtime"
"strconv" "strconv"
"github.com/hajimehoshi/gopherwasm/js" "github.com/hajimehoshi/gopherwasm/js"
@ -232,9 +231,6 @@ func init() {
window.Call("addEventListener", "load", js.NewCallback(func([]js.Value) { window.Call("addEventListener", "load", js.NewCallback(func([]js.Value) {
close(ch) 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 <-ch
} }