From 3f2a1004656e52715622509e6b0509507dd417a1 Mon Sep 17 00:00:00 2001 From: Jeffrey Morgan Date: Tue, 25 Jul 2023 15:41:56 -0400 Subject: [PATCH] app: log app errors to `console` --- app/src/index.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/src/index.ts b/app/src/index.ts index 25475992..f74adc66 100644 --- a/app/src/index.ts +++ b/app/src/index.ts @@ -54,12 +54,8 @@ function firstRunWindow() { // and load the index.html of the app. welcomeWindow.loadURL(MAIN_WINDOW_WEBPACK_ENTRY) - welcomeWindow.on('ready-to-show', () => welcomeWindow.show()) - // for debugging - // welcomeWindow.webContents.openDevTools() - if (process.platform === 'darwin') { app.dock.hide() } @@ -215,10 +211,10 @@ if (app.isPackaged) { } autoUpdater.on('error', e => { - logger.error(`update check failed - ${e.message}`) + console.error(`update check failed - ${e.message}`) }) -autoUpdater.on('update-downloaded', (event, releaseNotes, releaseName) => { +autoUpdater.on('update-downloaded', (_, releaseNotes, releaseName) => { dialog .showMessageBox({ type: 'info',