Unverified Commit 8068af68 authored by yann300's avatar yann300 Committed by GitHub

fix checking the current theme

parent 417c13ca
...@@ -35,8 +35,8 @@ export class ThemeModule extends Plugin { ...@@ -35,8 +35,8 @@ export class ThemeModule extends Plugin {
} }
this.themes = themes.reduce((acc, theme) => ({ ...acc, [theme.name]: theme }), {}) this.themes = themes.reduce((acc, theme) => ({ ...acc, [theme.name]: theme }), {})
const theme = (new QueryParams()).get().theme const theme = (new QueryParams()).get().theme
const currentSetting = this._deps.config.get('settings/theme') const currentTheme = this.themes[this._deps.config.get('settings/theme')] ? this._deps.config.get('settings/theme') : null
this.active = theme || (currentSetting && this.themes[currentSetting]) || 'Dark' this.active = theme || currentTheme || 'Dark'
this.forced = theme !== undefined this.forced = theme !== undefined
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment