loadPackagePath -> loadApplicationPackage
This commit is contained in:
parent
b74dd43ff5
commit
f482ea4902
1 changed files with 2 additions and 2 deletions
|
@ -235,7 +235,7 @@ if (option.modules.length > 0) {
|
||||||
require('module')._preloadModules(option.modules);
|
require('module')._preloadModules(option.modules);
|
||||||
}
|
}
|
||||||
|
|
||||||
function loadPackagePath(packagePath) {
|
function loadApplicationPackage(packagePath) {
|
||||||
try {
|
try {
|
||||||
// Override app name and version.
|
// Override app name and version.
|
||||||
packagePath = path.resolve(packagePath);
|
packagePath = path.resolve(packagePath);
|
||||||
|
@ -286,7 +286,7 @@ if (option.file && !option.webdriver) {
|
||||||
} else if (extension === '.html' || extension === '.htm') {
|
} else if (extension === '.html' || extension === '.htm') {
|
||||||
loadApplicationByUrl('file://' + path.resolve(file));
|
loadApplicationByUrl('file://' + path.resolve(file));
|
||||||
} else {
|
} else {
|
||||||
loadPackagePath(file);
|
loadApplicationPackage(file);
|
||||||
}
|
}
|
||||||
} else if (option.version) {
|
} else if (option.version) {
|
||||||
console.log('v' + process.versions.electron);
|
console.log('v' + process.versions.electron);
|
||||||
|
|
Loading…
Reference in a new issue