Apply suggestions from code review

Co-authored-by: Sebastian Malton <sebastian@malton.name>
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri NevalaandSebastian Malton committed 2021-02-03 22:12:04 +02:00
1 parent 2cecf0a17f
commit 64e6314c51
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -29,7 +29,7 @@ export class LensProxy {
listen(port = this.port): this {
this.proxyServer = this.buildCustomProxy().listen(port);
logger.info(`[LENS-PROXY] LensProxy server has started at ${this.origin}`);
logger.info(`[LENS-PROXY]: Proxy server has started at ${this.origin}`);
return this;
}
+3 -3
View File
@@ -84,17 +84,17 @@ export class WindowManager extends Singleton {
});
this.mainWindow.webContents.on("did-fail-load", (_event, code, desc) => {
logger.error(`[WINDOW-MANAGER] Failed to load Main window`, code, desc);
logger.error(`[WINDOW-MANAGER]: Failed to load Main window`, { code, desc });
});
this.mainWindow.webContents.on("did-finish-load", () => {
logger.info("[WINDOW-MANAGER] Main window loaded");
logger.info("[WINDOW-MANAGER]: Main window loaded");
});
}
try {
if (showSplash) await this.showSplash();
logger.info(`[WINDOW-MANAGER] Loading Main window from url: ${this.mainUrl} ...`);
logger.info(`[WINDOW-MANAGER]: Loading Main window from url: ${this.mainUrl} ...`);
await this.mainWindow.loadURL(this.mainUrl);
this.mainWindow.show();
this.splashWindow?.close();