pull/1/head
Swissky 2022-09-30 17:34:57 +02:00
parent c035729f89
commit 330f077473
1 changed files with 3 additions and 2 deletions

View File

@ -5,12 +5,13 @@
function darkmode() {
let enabled = localStorage.getItem('dark-mode')
if (enabled === null || enabled === 'true') {
if (enabled === null) {
enable()
}
else if (localStorage.getItem('dark-mode') === 'false') {
enable();
} else {
}
else {
disable();
}