mirror of
https://0xacab.org/anarsec/anarsec.guide.git
synced 2025-08-13 00:35:42 -04:00
hide darkmode icon in safest mode
This commit is contained in:
parent
7decaf8359
commit
748eeb7b48
3 changed files with 9 additions and 7 deletions
|
@ -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 ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue