mirror of
https://github.com/Steffo99/tidebringer-firefox.git
synced 2025-01-04 21:19:46 +00:00
Disable the button after clicking on it
This commit is contained in:
parent
115264b589
commit
a48c09765d
1 changed files with 1 additions and 0 deletions
|
@ -22,6 +22,7 @@ async function addAllSubscribedToCollection() {
|
|||
const buttonElement = document.querySelector("#tidebringer-btn-add-all-subscribed");
|
||||
buttonElement.removeEventListener("click", addAllSubscribedToCollection)
|
||||
buttonElement.className += " tidebringer-running";
|
||||
buttonElement.setAttribute("disabled", "true")
|
||||
|
||||
const itemElements = document.querySelectorAll(".itemChoice");
|
||||
for (let i = 0; i < itemElements.length; i++) {
|
||||
|
|
Loading…
Reference in a new issue