loadPackagePath -> loadApplicationPackage

This commit is contained in:
Kevin Sawicki 2016-02-04 10:35:17 -08:00
parent b74dd43ff5
commit f482ea4902

View file

@ -235,7 +235,7 @@ if (option.modules.length > 0) {
require('module')._preloadModules(option.modules);
}
function loadPackagePath(packagePath) {
function loadApplicationPackage(packagePath) {
try {
// Override app name and version.
packagePath = path.resolve(packagePath);
@ -286,7 +286,7 @@ if (option.file && !option.webdriver) {
} else if (extension === '.html' || extension === '.htm') {
loadApplicationByUrl('file://' + path.resolve(file));
} else {
loadPackagePath(file);
loadApplicationPackage(file);
}
} else if (option.version) {
console.log('v' + process.versions.electron);