From 2526fdd65c2836ab5bcc8d9bc120ae63d7521afb Mon Sep 17 00:00:00 2001 From: Vishwas Shashidhar Date: Mon, 2 Apr 2018 15:51:22 +0530 Subject: [PATCH] ELECTRON-397: fix the regression on opening external urls (#332) --- js/windowMgr.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/windowMgr.js b/js/windowMgr.js index 5d91eaff..8cde857f 100644 --- a/js/windowMgr.js +++ b/js/windowMgr.js @@ -77,17 +77,17 @@ function removeWindowKey(key) { /** * Gets the parsed url - * @returns {String} + * @returns {Url} * @param appUrl */ function getParsedUrl(appUrl) { let parsedUrl = nodeURL.parse(appUrl); - if (!parsedUrl.protocol || parsedUrl.protocol !== 'https') { + if (!parsedUrl.protocol || parsedUrl.protocol !== 'https:') { parsedUrl.protocol = 'https:'; parsedUrl.slashes = true } let url = nodeURL.format(parsedUrl); - return url; + return nodeURL.parse(url); } /**