Fix dm
parent
c035729f89
commit
330f077473
|
@ -5,12 +5,13 @@
|
||||||
|
|
||||||
function darkmode() {
|
function darkmode() {
|
||||||
let enabled = localStorage.getItem('dark-mode')
|
let enabled = localStorage.getItem('dark-mode')
|
||||||
if (enabled === null || enabled === 'true') {
|
if (enabled === null) {
|
||||||
enable()
|
enable()
|
||||||
}
|
}
|
||||||
else if (localStorage.getItem('dark-mode') === 'false') {
|
else if (localStorage.getItem('dark-mode') === 'false') {
|
||||||
enable();
|
enable();
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
disable();
|
disable();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue