aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/js/index.js
diff options
context:
space:
mode:
authorMarvin Borner2020-07-09 22:33:43 +0200
committerMarvin Borner2020-07-09 22:33:43 +0200
commit1edfdf5f3a316a36108a0a853b0a2553d116d6fc (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /src/main/resources/js/index.js
parent18edde9bd3603f3f867cebce100e7b22be9012cd (diff)
Rewriiiiiiiiiite!
Okay, okay. I know, rewriting projects all the time is dumb. Buuut, we really don't want to work with our old and ugly code anymore. Furthermore we'll be using Deno now!
Diffstat (limited to 'src/main/resources/js/index.js')
-rw-r--r--src/main/resources/js/index.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/main/resources/js/index.js b/src/main/resources/js/index.js
deleted file mode 100644
index 6266978..0000000
--- a/src/main/resources/js/index.js
+++ /dev/null
@@ -1,8 +0,0 @@
-if (document.querySelector("#toggle") !== null) {
- document.querySelector("#toggle").addEventListener("click", () => {
- const request = new XMLHttpRequest();
- request.open("POST", "/user/theme");
- request.onload = () => location.reload();
- request.send();
- });
-}