Fix a small issue with the toggle dark mode button
This commit is contained in:
parent
d81dafb1c5
commit
7250c9858a
|
@ -54,5 +54,5 @@
|
|||
"desktop": "assets/screenshot-desktop.jpg",
|
||||
"mobile": "assets/screenshot-mobile.jpg"
|
||||
},
|
||||
"version": "0.6.0"
|
||||
"version": "0.6.1"
|
||||
}
|
||||
|
|
|
@ -193,10 +193,10 @@ $(document).ready(() => {
|
|||
if (currentSavedTheme === 'dark') {
|
||||
$toggleDarkMode.attr('checked', true)
|
||||
}
|
||||
}
|
||||
|
||||
if (isDarkMode()) {
|
||||
$toggleDarkMode.attr('checked', true)
|
||||
} else {
|
||||
if (isDarkMode()) {
|
||||
$toggleDarkMode.attr('checked', true)
|
||||
}
|
||||
}
|
||||
|
||||
var headerElement = document.querySelector('.js-header')
|
||||
|
|
Loading…
Reference in a new issue