fix plugin name

pull/1701/head^2
yann300 3 years ago
parent 020e52be9b
commit 1532881448
  1. 4
      apps/remix-ide/src/app/editor/editor.js

@ -26,11 +26,11 @@ class Editor extends Plugin {
} }
const translateTheme = (theme) => this._themes[theme.name === 'Dark' ? 'remixDark' : theme.quality] const translateTheme = (theme) => this._themes[theme.name === 'Dark' ? 'remixDark' : theme.quality]
this.on('themeModule', 'themeChanged', (theme) => { this.on('theme', 'themeChanged', (theme) => {
this.currentTheme = translateTheme(theme) this.currentTheme = translateTheme(theme)
this.renderComponent() this.renderComponent()
}) })
this.call('themeModule', 'currentTheme', (theme) => this.currentTheme = translateTheme(theme)) this.call('theme', 'currentTheme', (theme) => this.currentTheme = translateTheme(theme))
// Init // Init
this.event = new EventManager() this.event = new EventManager()

Loading…
Cancel
Save