The default_app should also set process.mainModule.

This commit is contained in:
Cheng Zhao 2014-06-22 14:57:11 +08:00
parent 9c84f92f3e
commit ae3958c997

View file

@ -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();