Edited the clipboard functionality to change border color on success. [Quality-of-life edit]

This commit is contained in:
Pranav M 2022-07-15 07:52:07 -04:00 committed by GitHub
parent dff5ae0d4d
commit 954ec4e9ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")
);