Skip to content

Commit

Permalink
the hell
Browse files Browse the repository at this point in the history
  • Loading branch information
orbit-loona authored Feb 6, 2025
1 parent 939556a commit 34b2021
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mods/a_mod_by_alice.js
Original file line number Diff line number Diff line change
Expand Up @@ -3286,7 +3286,10 @@ color1 and color2 spread through striped paint like dye does with itself. <u>col

gameCanvas = document.getElementById("game");
canvas = document.getElementById("game");
ctx = gameCanvas.getContext("2d");
ctx = gameCanvas?.getContext?.("2d");
if(!ctx) { window.addEventListener("load",function() {
ctx = gameCanvas.getContext("2d")
})}

function setCanvasWidthAndHeight(ctx) {
if (window.innerWidth < 700) {
Expand Down

0 comments on commit 34b2021

Please sign in to comment.