Fix dm
parent
c035729f89
commit
330f077473
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue