Fix unit tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2021-06-10 18:18:56 -04:00
1 parent 570f3fdb56
commit ba6fd5797a
1 file changed
+1 -1
+1 -1
View File
@@ -85,7 +85,7 @@ export class LensProtocolRouterMain extends proto.LensProtocolRouter {
const routeInternally = checkHost(url); const routeInternally = checkHost(url);
logger.info(`${proto.LensProtocolRouter.LoggingPrefix}: routing ${url.toString()}`); logger.info(`${proto.LensProtocolRouter.LoggingPrefix}: routing ${url.toString()}`);
WindowManager.getInstance().ensureMainWindow().catch(noop); WindowManager.getInstance(false)?.ensureMainWindow().catch(noop);
if (routeInternally) { if (routeInternally) {
this._routeToInternal(url); this._routeToInternal(url);