2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-12-23 10:38:55 +00:00

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

View File

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