Fix wasm32 deployments not displaying anything (#2574)
* reuse `canvas` element generated by dummy window * fix formatting * set `control_flow` to `Poll` in `resumed` this is mostly a fix for Chrome * Avoid blowing up memory when booting up on Wasm --------- Co-authored-by: Héctor Ramón Jiménez <hector@hecrj.dev>
This commit is contained in:
parent
f3b51e40f0
commit
d46f6f92ce
2 changed files with 42 additions and 27 deletions
|
|
@ -44,5 +44,5 @@ winapi.workspace = true
|
|||
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||
web-sys.workspace = true
|
||||
web-sys.features = ["Document", "Window"]
|
||||
web-sys.features = ["Document", "Window", "HtmlCanvasElement"]
|
||||
wasm-bindgen-futures.workspace = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue