fix canDeactivatePlugin implementation

remixplugin0.3
yann300 4 years ago
parent eb8f8fa332
commit 13bee7ab91
  1. 4
      apps/remix-ide/src/remixAppManager.js

@ -16,7 +16,7 @@ export function isNative (name) {
}
export function canActivate (name) {
return ['manager', 'debugger', 'ethdoc'].includes(name)
return ['ethdoc'].includes(name) || isNative(name)
}
export class RemixAppManager extends PluginManager {
@ -33,7 +33,7 @@ export class RemixAppManager extends PluginManager {
}
async canDeactivatePlugin (from, to) {
if (requiredModules.includes(name)) return false
if (requiredModules.includes(to.name)) return false
return from.name === 'manager'
}

Loading…
Cancel
Save