Skip to content

Commit

Permalink
Merge pull request #59 from molayli/patch-1
Browse files Browse the repository at this point in the history
use isEnabled.value instead of this.darkMode
  • Loading branch information
vikdiesel authored May 22, 2024
2 parents 7893fac + dc7d9a1 commit 99bfa7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stores/darkMode.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const useDarkModeStore = defineStore('darkMode', () => {

// You can persist dark mode setting
// if (typeof localStorage !== 'undefined') {
// localStorage.setItem('darkMode', this.darkMode ? '1' : '0')
// localStorage.setItem('darkMode', isEnabled.value ? '1' : '0')
// }
}

Expand Down

0 comments on commit 99bfa7b

Please sign in to comment.