hide darkmode icon in safest mode

This commit is contained in:
anarsec 2024-04-15 19:07:30 +00:00
parent 7decaf8359
commit 748eeb7b48
No known key found for this signature in database
3 changed files with 9 additions and 7 deletions

View file

@ -63,6 +63,8 @@ function documentReadyCallback() {
document.getElementById("dark-mode").setAttribute("title", "Switch to light theme");
}
document.getElementById("dark-mode").style.display = "inline";
document.getElementById("dark-mode").addEventListener("click", () => {
if (
localStorage.getItem("theme") == null ||