From c6d652372c4db1520a0b1782a632141c17c9fb27 Mon Sep 17 00:00:00 2001 From: Agni Rammohan <103090218+agni2012@users.noreply.github.com> Date: Wed, 16 Jul 2025 23:09:11 -0700 Subject: [PATCH] Update copypaste.js --- mods/copypaste.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/copypaste.js b/mods/copypaste.js index c3cbf81d..1bfa9101 100644 --- a/mods/copypaste.js +++ b/mods/copypaste.js @@ -53,7 +53,7 @@ document.addEventListener("mousedown", (event) => { var matrix = pluckMatrix(x - (size-1)/2, y - (size-1)/2, size, size); var payload = JSON.stringify({ matrix, x, y }); navigator.clipboard.writeText(payload) - .then(() => alert("Copied " + size + "×" + size)) + .then(() => logMessage("Copied " + size + "×" + size)) .catch(e => console.error("Copy failed:", e)); } @@ -80,7 +80,7 @@ document.addEventListener("mousedown", (event) => { } } - alert("Pasted at", x, y); + logMessage("Pasted Successfully");