From ba6fd5797af1aacf7c3730ac1921e95c41b66bf4 Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Thu, 10 Jun 2021 18:18:56 -0400 Subject: [PATCH] Fix unit tests 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 2850f3a056..6a8090617b 100644 --- a/src/main/protocol-handler/router.ts +++ b/src/main/protocol-handler/router.ts @@ -85,7 +85,7 @@ export class LensProtocolRouterMain extends proto.LensProtocolRouter { const routeInternally = checkHost(url); logger.info(`${proto.LensProtocolRouter.LoggingPrefix}: routing ${url.toString()}`); - WindowManager.getInstance().ensureMainWindow().catch(noop); + WindowManager.getInstance(false)?.ensureMainWindow().catch(noop); if (routeInternally) { this._routeToInternal(url);