From f5d8f1d6e357727f00c259b40cd2c8416ac7dd05 Mon Sep 17 00:00:00 2001 From: Finn Christiansen Date: Thu, 1 Jun 2023 21:24:04 +0200 Subject: [PATCH] :rotating_light: remove unused stuff --- app/static/app.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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"}); }); });