diff --git a/app/static/app.js b/app/static/app.js index 6fd7a0c..3a87b7f 100644 --- a/app/static/app.js +++ b/app/static/app.js @@ -1,9 +1,7 @@ document.addEventListener("DOMContentLoaded", () => { document.querySelectorAll("a.color").forEach(button => { - button.addEventListener("click", event => { - console.log("button"); - console.log(button.dataset.color); + button.addEventListener("click", () => { fetch("/color/" + button.dataset.color, {method: "POST"}); }); });