1
Fork 0
mirror of https://github.com/Steffo99/tidebringer-firefox.git synced 2025-01-05 05:29:46 +00:00

Disable button after clicking on it once

This commit is contained in:
Steffo 2022-07-22 06:25:28 +02:00
parent 78b6b4f698
commit 115264b589
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -20,6 +20,7 @@ async function addItemToCollection(itemElement) {
async function addAllSubscribedToCollection() {
const buttonElement = document.querySelector("#tidebringer-btn-add-all-subscribed");
buttonElement.removeEventListener("click", addAllSubscribedToCollection)
buttonElement.className += " tidebringer-running";
const itemElements = document.querySelectorAll(".itemChoice");