1
Fork 0
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:
Steffo 2022-07-22 06:26:49 +02:00
parent 115264b589
commit a48c09765d
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -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++) {