Backup Version - 11/9
This commit is contained in:
parent
aec338c37a
commit
493e6366b4
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
const darkModeDefault = false;
|
||||
|
||||
// CSS class used to set Dark Mode properties
|
||||
// CSS class used to set Dark Mode properties
|
||||
const DARK_MODE_CSS = 'dark-mode';
|
||||
|
||||
// LocalStorage key used to store Dark Mode state
|
||||
|
@ -91,4 +91,4 @@ $(addDarkModeToggle);
|
|||
// Apply dark mode immediately if it's been set previously
|
||||
if(localStorage.getItem(DARK_MODE_STORAGE) === 'true') {
|
||||
document.body.classList.add(DARK_MODE_CSS);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue