Update copypaste.js

This commit is contained in:
Agni Rammohan 2025-07-16 23:09:11 -07:00 committed by GitHub
parent 68bf373312
commit c6d652372c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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");