Don't copy the status text
This commit is contained in:
@@ -15,6 +15,12 @@ $(function() {
|
||||
firstElement.addEventListener('click', function() {
|
||||
try {
|
||||
const text = firstElement.innerText;
|
||||
|
||||
// If the text is already "Copied!", don't do anything
|
||||
if (text == "Copied!") {
|
||||
return;
|
||||
}
|
||||
|
||||
navigator.clipboard.writeText(text);
|
||||
|
||||
firstElement.innerHTML = "<b>Copied!</b>";
|
||||
|
||||
Reference in New Issue
Block a user