Commit 15328814 authored by yann300's avatar yann300

fix plugin name

parent 020e52be
...@@ -26,11 +26,11 @@ class Editor extends Plugin { ...@@ -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()
......
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