mirror of
https://github.com/tubearchivist/browser-extension.git
synced 2024-11-05 03:30:12 +00:00
timeout reset button text after click
This commit is contained in:
parent
6b6a9b8b02
commit
59709c4c29
@ -318,8 +318,14 @@ function buttonSuccess(button) {
|
||||
}
|
||||
if (buttonSpan.innerHTML === "Subscribe") {
|
||||
buttonSpan.innerHTML = "Success";
|
||||
setTimeout(() => {
|
||||
buttonSpan.innerHTML = "Subscribe";
|
||||
}, 2000);
|
||||
} else {
|
||||
buttonSpan.innerHTML = checkmarkIcon;
|
||||
setTimeout(() => {
|
||||
buttonSpan.innerHTML = downloadIcon;
|
||||
}, 2000);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user