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",
|
"desktop": "assets/screenshot-desktop.jpg",
|
||||||
"mobile": "assets/screenshot-mobile.jpg"
|
"mobile": "assets/screenshot-mobile.jpg"
|
||||||
},
|
},
|
||||||
"version": "0.6.0"
|
"version": "0.6.1"
|
||||||
}
|
}
|
||||||
|
|
|
@ -193,11 +193,11 @@ $(document).ready(() => {
|
||||||
if (currentSavedTheme === 'dark') {
|
if (currentSavedTheme === 'dark') {
|
||||||
$toggleDarkMode.attr('checked', true)
|
$toggleDarkMode.attr('checked', true)
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
|
|
||||||
if (isDarkMode()) {
|
if (isDarkMode()) {
|
||||||
$toggleDarkMode.attr('checked', true)
|
$toggleDarkMode.attr('checked', true)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var headerElement = document.querySelector('.js-header')
|
var headerElement = document.querySelector('.js-header')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue