The default_app should also set process.mainModule.
This commit is contained in:
parent
9c84f92f3e
commit
ae3958c997
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ if (argv._.length > 0) {
|
|||
}
|
||||
|
||||
// Run the app.
|
||||
require(packagePath);
|
||||
require('module')._load(packagePath, module, true);
|
||||
} catch(e) {
|
||||
if (e.code == 'MODULE_NOT_FOUND') {
|
||||
app.focus();
|
||||
|
|
Loading…
Reference in a new issue