diff --git a/site/root/js/pet-me.js b/site/root/js/pet-me.js index deebc49..57fc4e6 100644 --- a/site/root/js/pet-me.js +++ b/site/root/js/pet-me.js @@ -17,6 +17,7 @@ petButton.addEventListener("click", async () => { petButton.disabled = true; petButton.outerHTML = "| thanks! <3"; + count.innerText = Number.parseInt(count.innerText) + 1; const r = await (await fetch(url, { method: "post" })).json(); if (r.count) { count.innerText = r.count;