[Bootstrap] Remove dialog from ErrorHandler as largely unused/needed

This commit is contained in:
Ducko 2022-04-21 22:49:48 +01:00
parent e06e1abda8
commit f599d1bd1d
1 changed files with 2 additions and 10 deletions

12
src/bootstrap.js vendored
View File

@ -1,4 +1,4 @@
const { app, session, dialog } = require('electron');
const { app, session } = require('electron');
const { readFileSync } = require('fs');
const get = require('request');
const { join } = require('path');
@ -15,15 +15,7 @@ global.releaseChannel = buildInfo.releaseChannel;
log('BuildInfo', buildInfo);
const fatal = e => {
log('Fatal', e);
dialog.showMessageBox({
type: 'error',
message: 'A fatal Javascript error occured',
detail: e?.stack ?? String(e)
}).then(() => app.quit());
};
const fatal = e => log('Fatal', e);
process.on('uncaughtException', console.error);