From 48ca691b2b7bc3b8c77bbd397a0f9becb30e8817 Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Mon, 21 Jun 2021 09:12:51 -0400 Subject: [PATCH] Always open main window if lens:// are routed Signed-off-by: Sebastian Malton --- src/main/protocol-handler/router.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/protocol-handler/router.ts b/src/main/protocol-handler/router.ts index 6a8090617b..cbd609a9ff 100644 --- a/src/main/protocol-handler/router.ts +++ b/src/main/protocol-handler/router.ts @@ -82,10 +82,10 @@ export class LensProtocolRouterMain extends proto.LensProtocolRouter { throw new proto.RoutingError(proto.RoutingErrorType.INVALID_PROTOCOL, url); } + WindowManager.getInstance(false)?.ensureMainWindow().catch(noop); const routeInternally = checkHost(url); logger.info(`${proto.LensProtocolRouter.LoggingPrefix}: routing ${url.toString()}`); - WindowManager.getInstance(false)?.ensureMainWindow().catch(noop); if (routeInternally) { this._routeToInternal(url);