Add a flag indicating app is started from default app
This commit is contained in:
parent
7b83d920fa
commit
c18880bd77
2 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue