From 864ed32b941798ce7d1ebd3324dbf26e0ed94ecd Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 13 Jul 2020 10:56:06 +0200 Subject: [PATCH] canActivate accept ethdoc --- src/remixAppManager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/remixAppManager.js b/src/remixAppManager.js index c1d4fdf170..e866bc2641 100644 --- a/src/remixAppManager.js +++ b/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) {