mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-11-27 11:20:45 -06:00
ELECTRON-397: fix the regression on opening external urls (#332)
This commit is contained in:
parent
8cb4382606
commit
2526fdd65c
@ -77,17 +77,17 @@ function removeWindowKey(key) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the parsed url
|
* Gets the parsed url
|
||||||
* @returns {String}
|
* @returns {Url}
|
||||||
* @param appUrl
|
* @param appUrl
|
||||||
*/
|
*/
|
||||||
function getParsedUrl(appUrl) {
|
function getParsedUrl(appUrl) {
|
||||||
let parsedUrl = nodeURL.parse(appUrl);
|
let parsedUrl = nodeURL.parse(appUrl);
|
||||||
if (!parsedUrl.protocol || parsedUrl.protocol !== 'https') {
|
if (!parsedUrl.protocol || parsedUrl.protocol !== 'https:') {
|
||||||
parsedUrl.protocol = 'https:';
|
parsedUrl.protocol = 'https:';
|
||||||
parsedUrl.slashes = true
|
parsedUrl.slashes = true
|
||||||
}
|
}
|
||||||
let url = nodeURL.format(parsedUrl);
|
let url = nodeURL.format(parsedUrl);
|
||||||
return url;
|
return nodeURL.parse(url);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user