Always open main window if lens:// are routed

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2021-06-21 09:12:51 -04:00
1 parent adf1251bbd
commit 48ca691b2b
1 file changed
+1 -1
+1 -1
View File
@@ -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);