gg: use html5_canvas_name as the name of the canvas in gg.js.v too, similarly to gg.c.v

This commit is contained in:
Delyan Angelov 2023-08-13 17:45:19 +03:00
parent 33965bc29b
commit be1270540b
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED
3 changed files with 7 additions and 7 deletions

View file

@ -171,7 +171,7 @@ fn main() {
user_data: game
frame_fn: frame
event_fn: on_event
canvas: 'canvas'
html5_canvas_name: 'canvas'
)
game.init_game()
game.gg.run() // Run the render loop in the main thread