2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-06-20 12:22:21 +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';
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;