mirror of
https://github.com/tubearchivist/browser-extension.git
synced 2024-11-22 11:40:13 +00:00
set unsubscribe inner text after subscribe
This commit is contained in:
parent
7c47c980f3
commit
ef89daf1a1
@ -433,7 +433,7 @@ function buttonSuccess(button) {
|
|||||||
if (buttonSpan.innerHTML === 'Subscribe') {
|
if (buttonSpan.innerHTML === 'Subscribe') {
|
||||||
buttonSpan.innerHTML = 'Success';
|
buttonSpan.innerHTML = 'Success';
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
buttonSpan.innerHTML = 'Subscribe';
|
buttonSpan.innerHTML = 'Unsubscribe';
|
||||||
}, 2000);
|
}, 2000);
|
||||||
} else {
|
} else {
|
||||||
buttonSpan.innerHTML = checkmarkIcon;
|
buttonSpan.innerHTML = checkmarkIcon;
|
||||||
|
Loading…
Reference in New Issue
Block a user