pull/5370/head
yann300 5 years ago
parent 363cce908b
commit c47fc4b739
  1. 7
      src/remixAppManager.js

@ -237,6 +237,9 @@ export class RemixAppManager extends PluginEngine {
* (localStorage, queryParams)
**/
class PluginLoader {
get currentLoader () {
return this.loaders[this.current]
}
constructor () {
const queryParams = new QueryParams()
this.donotAutoReload = ['remixd'] // that would be a bad practice to force loading some plugins at page load.
@ -265,10 +268,10 @@ class PluginLoader {
}
set (plugin, actives) {
this.loaders[this.current].set(plugin, actives)
this.currentLoader().set(plugin, actives)
}
get () {
return this.loaders[this.current].get()
return this.currentLoader().get()
}
}

Loading…
Cancel
Save