You've already forked AstralRinth
forked from didirus/AstralRinth
Final push before rewrite
This commit is contained in:
@@ -4,6 +4,13 @@ window.onload = function () {
|
||||
}
|
||||
}
|
||||
|
||||
function switchThemes() {
|
||||
let switchTheme = localStorage.getItem("data-theme") === "light" ? "dark" : "light";
|
||||
|
||||
localStorage.setItem("data-theme", switchTheme);
|
||||
document.documentElement.setAttribute("data-theme", switchTheme);
|
||||
}
|
||||
|
||||
function closePopup(e) {
|
||||
e.parentElement.outerHTML = "";
|
||||
}
|
||||
Reference in New Issue
Block a user