Don't copy the status text
This commit is contained in:
1 parent
98445d758e
commit
d23f6313d5
1 file changed
+6
@@ -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