We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f596fb1 commit d9ca900Copy full SHA for d9ca900
raylib.js
@@ -82,7 +82,7 @@ class RaylibJs {
82
throw new Error("Could not create 2d canvas context");
83
}
84
85
- const { height, width } = ctx.canvas.getBoundingClientRect();
+ const { height, width } = canvas.getBoundingClientRect();
86
adjustCanvasSize(ctx, height, width);
87
88
this.wasm = await WebAssembly.instantiateStreaming(fetch(wasmPath), {
0 commit comments