keep a list of plugin we don't want to autoload && and add remixd to it.

pull/1/head
yann300 5 years ago
parent 34f090e868
commit 6af8b258cb
  1. 5
      src/remixAppManager.js

@ -19,11 +19,14 @@ export class RemixAppManager extends PluginEngine {
constructor (plugins) {
super(plugins, settings)
this.event = new EventEmitter()
this.donotAutoReload = ['remixd'] // that would be a bad practice to force loading some plugins at page load.
this.registered = {}
}
onActivated (plugin) {
localStorage.setItem('workspace', JSON.stringify(this.actives))
if (!this.donotAutoReload.includes(plugin.name)) {
localStorage.setItem('workspace', JSON.stringify(this.actives))
}
this.event.emit('activate', plugin.name)
}

Loading…
Cancel
Save