mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
ui: Bug fix: compile error (a return value is required)
This commit is contained in:
parent
a4092a1bf1
commit
46c74ec818
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user