need secret mounts

This commit is contained in:
ducoterra
2020-04-25 12:30:04 -04:00
parent 948569a659
commit 57328a7fc8
3 changed files with 6 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ var count = document.getElementById("COUNT");
button.addEventListener("click", event => {
button.disabled = true;
button.classList.add("is-loading");
fetch('/button', {
method: 'POST',
headers: {
@@ -34,6 +35,7 @@ button.addEventListener("click", event => {
count.innerText = data.pressed;
}).finally(() => {
button.disabled = false;
button.classList.remove("is-loading");
});
});