diff --git a/internal/ui/ui_js.go b/internal/ui/ui_js.go index bdcd6e3c7..7d5cdb991 100644 --- a/internal/ui/ui_js.go +++ b/internal/ui/ui_js.go @@ -116,7 +116,7 @@ func (*userInterface) swapBuffers() { func Init() *opengl.Context { // Do nothing in node.js. if js.Global.Get("require") != js.Undefined { - return + return nil } doc := js.Global.Get("document")