From 835fee4e402ad9f0da7b2bd0ac44a45de8f89df1 Mon Sep 17 00:00:00 2001 From: leejooy96 Date: Fri, 30 Sep 2022 13:21:57 +0900 Subject: [PATCH] main: add main crash handler --- src/main/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/index.js b/src/main/index.js index a1df2be..9ecf554 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -38,3 +38,7 @@ app.on('window-all-closed', () => { app.on('render-process-gone', (ev, webContents, details) => { errorWindow = createErrorWindow(errorWindow, mainWindow, details) }) + +process.on('uncaughtException', () => { + errorWindow = createErrorWindow(errorWindow, mainWindow) +})