main: add main crash handler
This commit is contained in:
1 parent
fce96211ba
commit
835fee4e40
1 file changed
+4
@@ -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)
|
||||
})
|
||||
Reference in new issue
Block a user