diff --git a/src/main/index.js b/src/main/index.js index 22f5fc4..98be9f9 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -30,3 +30,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) +})