Skip to content

Commit f596fb1

Browse files
authored
fix: fix typos
1 parent fd5bdb6 commit f596fb1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

raylib.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ class RaylibJs {
7474

7575
const canvas = document.getElementById(canvasId);
7676
if (!canvas) {
77-
throw new Error('Canvas element not found')
77+
throw new Error("Canvas element not found");
7878
}
7979

80-
this.ctx = setupCanvas(canvas);
80+
this.ctx = canvas.getContext("2d");
8181
if (!this.ctx) {
82-
throw new Error("Could not create 2d canvas context")
82+
throw new Error("Could not create 2d canvas context");
8383
}
8484

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

0 commit comments

Comments
 (0)