Prevent electron from crashing on error

This commit is contained in:
Tzahi12345
2023-04-20 00:18:41 -04:00
parent bf38d9e67e
commit 8e1ebb5a4a

View File

@@ -75,4 +75,8 @@ app.on('activate', () => {
if (win === null) {
createWindow();
}
});
process.on('uncaughtException', (error) => {
elogger.info(error.message);
});