Fix a small issue with the toggle dark mode button

This commit is contained in:
Eduardo 2019-11-16 16:28:12 +01:00
parent d81dafb1c5
commit 7250c9858a
2 changed files with 5 additions and 5 deletions

View file

@ -54,5 +54,5 @@
"desktop": "assets/screenshot-desktop.jpg",
"mobile": "assets/screenshot-mobile.jpg"
},
"version": "0.6.0"
"version": "0.6.1"
}

View file

@ -193,11 +193,11 @@ $(document).ready(() => {
if (currentSavedTheme === 'dark') {
$toggleDarkMode.attr('checked', true)
}
}
} else {
if (isDarkMode()) {
$toggleDarkMode.attr('checked', true)
}
}
var headerElement = document.querySelector('.js-header')