From 97e39c0f9beb8fd9499cf07ab36d35e522a12a8d Mon Sep 17 00:00:00 2001 From: awesomeuser Date: Fri, 4 Aug 2023 15:57:45 +0000 Subject: [PATCH] make data off ctx --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index ba2d731..ee3962b 100644 --- a/index.php +++ b/index.php @@ -135,7 +135,7 @@ document.onmouseup = function() { drawing = false; // write image-bits for posting - let canvasData = canvas.getImageData(0, 0, 128, 64); + let canvasData = ctx.getImageData(0, 0, 128, 64); bits.value = ""; // not best method, ideally want to create an array and then merge