mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
9 lines
178 B
JavaScript
9 lines
178 B
JavaScript
process.on('uncaughtException', (err) => {
|
|
console.error(err);
|
|
process.exit(1);
|
|
});
|
|
|
|
const { net } = await import('electron/main');
|
|
|
|
process.exit(net !== undefined ? 0 : 1);
|