mirror of
https://github.com/rickbarrette/redmine_qbo_vehicles.git
synced 2026-04-01 22:51:58 -04:00
Don't copy the text Copied!
This commit is contained in:
@@ -12,6 +12,11 @@ async function handleCopy(event) {
|
||||
link = event.target;
|
||||
}
|
||||
|
||||
// If the text is already "Copied!", don't do anything
|
||||
if (text == "Copied!") {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
// Write to clipboard
|
||||
await navigator.clipboard.writeText(text);
|
||||
|
||||
Reference in New Issue
Block a user