mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-24 21:34:06 -06:00
Edited the clipboard functionality to change border color on success. [Quality-of-life edit]
This commit is contained in:
parent
dff5ae0d4d
commit
954ec4e9ea
@ -25,7 +25,7 @@ const addCopyButtons = () => {
|
||||
() => {
|
||||
button.blur();
|
||||
button.innerHTML = svgCheck;
|
||||
setTimeout(() => (button.innerHTML = svgCopy), 2000);
|
||||
setTimeout(() => {button.innerHTML = svgCopy;button.style.borderColor = "";}, 2000);
|
||||
},
|
||||
(error) => (button.innerHTML = "Error")
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user