Skip to content

Commit

Permalink
fix: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
x1unix authored Feb 26, 2024
1 parent f596fb1 commit d9ca900
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raylib.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class RaylibJs {
throw new Error("Could not create 2d canvas context");
}

const { height, width } = ctx.canvas.getBoundingClientRect();
const { height, width } = canvas.getBoundingClientRect();
adjustCanvasSize(ctx, height, width);

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

0 comments on commit d9ca900

Please sign in to comment.