From 9aa32446cc894680b0d49c2003037b5f395f12fe Mon Sep 17 00:00:00 2001 From: Skyler Lehmkuhl Date: Thu, 5 Dec 2024 13:12:21 -0500 Subject: [PATCH] canvas on macOS has no reset() method --- src/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 828a972..96a717d 100644 --- a/src/main.js +++ b/src/main.js @@ -2712,7 +2712,8 @@ function updateLayout(element) { function updateUI() { for (let canvas of canvases) { let ctx = canvas.getContext("2d") - ctx.reset(); + ctx.resetTransform(); + ctx.beginPath() ctx.fillStyle = "white" ctx.fillRect(0,0,canvas.width,canvas.height)