From 311788dfe2621b93182d3fa2cab83c4839269936 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 27 May 2018 04:10:12 +0900 Subject: [PATCH] ui: Remove warnings of deadlock Now gopherwasm fixed this problem by avoiding js.MakeFunc. See also: https://github.com/hajimehoshi/gopherwasm/commit/3fe87b73c025922789858fe93e74dea634d437a1 --- internal/ui/ui_js.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/internal/ui/ui_js.go b/internal/ui/ui_js.go index 1ba578f78..0b83c5137 100644 --- a/internal/ui/ui_js.go +++ b/internal/ui/ui_js.go @@ -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 }