blob: d9a6cf8fe02b6a9c6f0fbb3f99033f355b5ecfe9 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
function setTheme(theme: string) {
console.log("setting theme to `" + theme + "`");
let body = document.getElementById("body")!;
body.setAttribute("data-theme", theme);
localStorage.setItem("theme", theme);
}
|