Don't copy the text Copied!

This commit is contained in:
2026-02-26 13:26:45 -05:00
parent e0fc07141c
commit 492ff000bf

View File

@@ -12,6 +12,11 @@ async function handleCopy(event) {
link = event.target; link = event.target;
} }
// If the text is already "Copied!", don't do anything
if (text == "Copied!") {
return;
}
try { try {
// Write to clipboard // Write to clipboard
await navigator.clipboard.writeText(text); await navigator.clipboard.writeText(text);