ui: Bug fix: compile error (a return value is required)

This commit is contained in:
Hajime Hoshi 2016-02-21 02:19:40 +09:00
parent a4092a1bf1
commit 46c74ec818

View File

@ -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")