Fix bug in default argument for targetUrl

This commit is contained in:
Jia Hao 2016-01-19 00:44:15 +08:00
parent 3b02889435
commit 549427c8ac
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ const ELECTRON_VERSION = '0.36.4';
const DEFAULT_APP_NAME = 'My App';
function optionsFactory(name,
targetUrl = 'http://google.com',
targetUrl,
platform = detectPlatform(),
arch = detectArch(),
version = ELECTRON_VERSION,
@ -47,7 +47,7 @@ function optionsFactory(name,
badge: badge,
width: width,
height: height
}
};
if (name && name.length > 0) {
options.name = name;