Add a flag indicating app is started from default app

This commit is contained in:
Cheng Zhao 2016-05-06 21:48:51 +09:00
parent 7b83d920fa
commit c18880bd77
2 changed files with 6 additions and 0 deletions

View file

@ -230,6 +230,9 @@ if (option.modules.length > 0) {
}
function loadApplicationPackage (packagePath) {
// Add a flag indicating app is started from default app.
process.defaultApp = true
try {
// Override app name and version.
packagePath = path.resolve(packagePath)