Closed
Description
Instead of detecting the browser I think that it would be better to detect a Node.js runtime since there are a number of projects that implements both.
This leads to uncaught exceptions not being fixed in Electron. Here is the offending line.
if (installHandler && !isInBrowser()) {
process.on('uncaughtException', handleUncaughtExceptions);
}
It would be better to check for the process
object:
if (installHandler && typeof process === 'object' && typeof process.on === 'function') {
process.on('uncaughtException', handleUncaughtExceptions);
}
Metadata
Metadata
Assignees
Labels
No labels