Merge pull request #2947 from ethereum/yann300-patch-9

canActivate accept ethdoc
pull/14/head
yann300 4 years ago committed by GitHub
commit ff7662825e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/remixAppManager.js

@ -15,7 +15,7 @@ export function isNative (name) {
}
export function canActivate (name) {
return ['manager', 'debugger'].includes(name)
return ['manager', 'debugger', 'ethdoc'].includes(name)
}
export class RemixAppManager extends PluginManager {
@ -29,7 +29,7 @@ export class RemixAppManager extends PluginManager {
}
async canActivate (from, to) {
return true // canActivate(from.name)
return canActivate(from.name)
}
async canDeactivate (from, to) {

Loading…
Cancel
Save