main: add main crash handler

This commit is contained in:
leejooy96 committed 2022-09-30 13:21:57 +09:00
1 parent fce96211ba
commit 835fee4e40
1 file changed
+4
+4
View File
@@ -38,3 +38,7 @@ app.on('window-all-closed', () => {
app.on('render-process-gone', (ev, webContents, details) => { app.on('render-process-gone', (ev, webContents, details) => {
errorWindow = createErrorWindow(errorWindow, mainWindow, details) errorWindow = createErrorWindow(errorWindow, mainWindow, details)
}) })
process.on('uncaughtException', () => {
errorWindow = createErrorWindow(errorWindow, mainWindow)
})