Skip to content

Commit d9ca900

Browse files
authored
fix: fix typo
1 parent f596fb1 commit d9ca900

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

raylib.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class RaylibJs {
8282
throw new Error("Could not create 2d canvas context");
8383
}
8484

85-
const { height, width } = ctx.canvas.getBoundingClientRect();
85+
const { height, width } = canvas.getBoundingClientRect();
8686
adjustCanvasSize(ctx, height, width);
8787

8888
this.wasm = await WebAssembly.instantiateStreaming(fetch(wasmPath), {

0 commit comments

Comments
 (0)