mirror of
https://github.com/rickbarrette/redmine_qbo_vehicles.git
synced 2026-04-02 07:01:59 -04:00
Don't copy the text Copied!
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user