blob: 4939622c878ea3752b7acca228a8c9e4ff586845 (
plain) (
blame)
1
2
3
4
5
6
|
document.querySelector("#toggle").addEventListener("click", () => {
const request = new XMLHttpRequest();
request.open("POST", "/user/theme");
request.onload = () => location.reload();
request.send();
});
|