Skip to content

Electron, nwjs and Brackets-Shell #78

Closed
@LinusU

Description

@LinusU

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions