1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix unit tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2021-06-10 18:18:56 -04:00
parent 570f3fdb56
commit ba6fd5797a

View File

@ -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);