We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28e234b commit 447467cCopy full SHA for 447467c
packages/vuepress-theme-reco/components/Mode/ModePicker.vue
@@ -31,8 +31,8 @@ export default {
31
mounted () {
32
const mode = localStorage.getItem('mode')
33
const { mode: customMode, modePicker } = this.$themeConfig
34
- const themeMode = customMode ?? 'auto'
35
- this.currentMode = modePicker === false ? themeMode : mode ?? themeMode
+ const themeMode = customMode || 'auto'
+ this.currentMode = modePicker === false ? themeMode : mode || themeMode
36
setMode(this.currentMode)
37
},
38
0 commit comments