mirror of
https://github.com/rickbarrette/redmine_qbo_vehicles.git
synced 2026-10-04 01:10:43 -04:00
Don't copy the text Copied!
This commit is contained in:
1 parent
e0fc07141c
commit
492ff000bf
1 file changed
+5
@@ -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