mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-11-21 16:38:41 -06:00
fix: SDA-1530 (Fix url validation check) (#789)
* SDA-1530 - Fix url validation check * SDA-1530 - Bump spellchecker to support open link validation * SDA-1530 - bump spellchecker version to 2.3.0 * SDA-1530 - add comment
This commit is contained in:
parent
1e8afb17ab
commit
ec863bc240
@ -76,7 +76,7 @@
|
||||
"electron-dl": "1.14.0",
|
||||
"electron-fetch": "1.3.0",
|
||||
"electron-log": "3.0.7",
|
||||
"electron-spellchecker": "git+https://github.com/symphonyoss/electron-spellchecker.git#v2.0.1",
|
||||
"electron-spellchecker": "git+https://github.com/symphonyoss/electron-spellchecker.git#v2.3.0",
|
||||
"ffi-napi": "2.4.5",
|
||||
"filesize": "4.1.2",
|
||||
"react": "16.9.0",
|
||||
|
@ -39,12 +39,14 @@ const verifyProtocolForNewUrl = (url: string): boolean => {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (parsedUrl.protocol === 'https') {
|
||||
// url parse returns protocol with :
|
||||
if (parsedUrl.protocol === 'https:') {
|
||||
logger.info(`child-window-handler: The url ${url} is a https url! Returning true for verification!`);
|
||||
return true;
|
||||
}
|
||||
|
||||
if (parsedUrl.protocol === 'http') {
|
||||
// url parse returns protocol with :
|
||||
if (parsedUrl.protocol === 'http:') {
|
||||
logger.info(`child-window-handler: The url ${url} is a http url! Returning true for verification!`);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user