Skip to content

Commit

Permalink
Merge pull request #1560 from NicoPennec/fix/setup-theme
Browse files Browse the repository at this point in the history
Fix setup of dark theme
  • Loading branch information
NicoPennec authored Oct 23, 2024
2 parents 63066f6 + 4f47aa8 commit 55c6c12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ export default {
const darkTheme = localStorage.getItem('dark-theme')
const isDarkTheme =
darkTheme === 'true' ||
(darkTheme !== 'false' && this.mainConfig?.dark_theme_by_default)
(darkTheme !== 'false' &&
Boolean(this.mainConfig?.dark_theme_by_default))
this.$store.commit('TOGGLE_DARK_THEME', isDarkTheme)
},
Expand Down

0 comments on commit 55c6c12

Please sign in to comment.