fix loading theme

pull/1715/head
yann300 3 years ago
parent f27360e9a5
commit ee7709fbe2
  1. 2
      apps/remix-ide/src/app/tabs/theme-module.js

@ -79,7 +79,7 @@ export class ThemeModule extends Plugin {
throw new Error(`Theme ${themeName} doesn't exist`)
}
const next = themeName || this.active // Name
if (themeName === this.active) return
if (next === this.active) return
_paq.push(['trackEvent', 'themeModule', 'switchTo', next])
const nextTheme = this.themes[next] // Theme
if (!this.forced) this._deps.config.set('settings/theme', next)

Loading…
Cancel
Save