Make the copied text reappear after copy
This commit is contained in:
parent
95a3f2f83c
commit
95198a1bd0
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
|||
codeBlock.innerText = "Copied!";
|
||||
setTimeout(function () {
|
||||
codeBlock.innerText = originalText;
|
||||
}, 1000); // Reset the text after 1 second
|
||||
}, 1000); // Revert text after 1 second
|
||||
} catch (err) {
|
||||
console.error("Unable to copy:", err);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue