You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (this.chosenMode==='system') this.getStorage.setItem('colorModePrefer', this.getPrefersColorScheme)
148
+
}
146
149
this.handleColorModeClass('add')
147
150
if (Object.keys(this.metaThemeColor).length) this.setMetaThemeColor(this.metaThemeColor[this.currentMode] ||this.metaThemeColor[this.getPrefersColorScheme])
if (!this.$isServer) returndocument.documentElement.classList[action](className)
174
-
this.$ssrContext.colorModeClass=this.currentMode==='system'?'': className // Adds the className in the ssr context for the user to insert as they wish in the HTML tag
177
+
this.$ssrContext.colorModeClass=this.currentMode==='system'?`${this.className.replace(/%cm/g, this.getPrefersColorScheme)}`: className // Adds the className in the ssr context for the user to insert as they wish in the HTML tag
0 commit comments