Skip to content

Commit

Permalink
Fix a small issue with the toggle dark mode button
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiesigner committed Nov 16, 2019
1 parent d81dafb commit 7250c98
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@
"desktop": "assets/screenshot-desktop.jpg",
"mobile": "assets/screenshot-mobile.jpg"
},
"version": "0.6.0"
"version": "0.6.1"
}
8 changes: 4 additions & 4 deletions src/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 7250c98

Please sign in to comment.