🚨 remove unused stuff
This commit is contained in:
parent
02a1ef7db8
commit
f5d8f1d6e3
1 changed files with 1 additions and 3 deletions
|
@ -1,9 +1,7 @@
|
||||||
document.addEventListener("DOMContentLoaded", () => {
|
document.addEventListener("DOMContentLoaded", () => {
|
||||||
|
|
||||||
document.querySelectorAll("a.color").forEach(button => {
|
document.querySelectorAll("a.color").forEach(button => {
|
||||||
button.addEventListener("click", event => {
|
button.addEventListener("click", () => {
|
||||||
console.log("button");
|
|
||||||
console.log(button.dataset.color);
|
|
||||||
fetch("/color/" + button.dataset.color, {method: "POST"});
|
fetch("/color/" + button.dataset.color, {method: "POST"});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue