From 549427c8acf10b0326f825c7e4ea9e7943f33940 Mon Sep 17 00:00:00 2001 From: Jia Hao Date: Tue, 19 Jan 2016 00:44:15 +0800 Subject: [PATCH] Fix bug in default argument for targetUrl --- src/options.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/options.js b/src/options.js index b00d968..a843ea2 100644 --- a/src/options.js +++ b/src/options.js @@ -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;