Skip to content

Commit

Permalink
make sure to wait before continuing
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 committed Nov 16, 2020
1 parent 177f1a2 commit 51576ba
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions apps/remix-ide/src/remixAppManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export class RemixAppManager extends PluginManager {

async canDeactivatePlugin (from, to) {
console.log('canDeactivatePlugin', from, to)
if (requiredModules.includes(name)) return false
return from.name === 'manager'
}

Expand Down Expand Up @@ -85,11 +86,6 @@ export class RemixAppManager extends PluginManager {
this.event.emit('ensureDeactivated', apiName)
}

deactivatePlugin (name) {
if (requiredModules.includes(name)) return
super.deactivatePlugin(name)
}

isRequired (name) {
return requiredModules.includes(name)
}
Expand Down

0 comments on commit 51576ba

Please sign in to comment.