RobLoach / pntr_app

Application wrapper for pntr.
https://robloach.github.io/pntr_app/
zlib License
5 stars 1 forks source link

#61 use Module.canvas #85

Closed konsumer closed 9 months ago

konsumer commented 9 months ago

This makes it so multiple instances can work in a single page, by using Module.canvas instead of canvas.

Related:

Additionally, if I am not using the plain ES5 emscritpen stuff, I have to do this before initializing to register it as a global:

window.canvas = canvas

This PR makes this unneeded (and prevents an async race-condition)