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) +})