diff options
Diffstat (limited to 'src/main/resources/js/index.js')
-rw-r--r-- | src/main/resources/js/index.js | 8 |
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(); - }); -} |