Skip to content

Commit 88bc202

Browse files
committed
main: don't catch app whenReady promise chain
1 parent f5d9a76 commit 88bc202

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/main.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,5 @@ async function onAppReady(app: Electron.App) {
144144
})
145145
}
146146

147-
app
148-
.whenReady()
149-
.then(() => onAppReady(app))
150-
.catch(console.log)
147+
// electron-log will catch unhandled rejections
148+
void app.whenReady().then(() => onAppReady(app))

0 commit comments

Comments
 (0)