diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2021-10-18 07:33:47 +0530 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2021-10-18 07:33:47 +0530 |
commit | 3e28975d32315444c4c535fda7ba2aa08a3a0bc2 (patch) | |
tree | ef7f7d9083b1d437b2cf68005cd6b831f526729c /src/helpers/url-helpers.ts | |
parent | Bumped up version to: 5.6.3-beta.1 [skip ci] (diff) | |
parent | 5.6.3-nightly.37 [skip ci] (diff) | |
download | ferdium-app-3e28975d32315444c4c535fda7ba2aa08a3a0bc2.tar.gz ferdium-app-3e28975d32315444c4c535fda7ba2aa08a3a0bc2.tar.zst ferdium-app-3e28975d32315444c4c535fda7ba2aa08a3a0bc2.zip |
Merge branch 'nightly' into release
Diffstat (limited to 'src/helpers/url-helpers.ts')
-rw-r--r-- | src/helpers/url-helpers.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/helpers/url-helpers.ts b/src/helpers/url-helpers.ts index 1e87ecabb..135f06cbf 100644 --- a/src/helpers/url-helpers.ts +++ b/src/helpers/url-helpers.ts | |||
@@ -29,7 +29,10 @@ export async function openPath(folderName: string) { | |||
29 | } | 29 | } |
30 | 30 | ||
31 | // TODO: Need to verify and fix/remove the skipping logic. Ideally, we should never skip this check | 31 | // TODO: Need to verify and fix/remove the skipping logic. Ideally, we should never skip this check |
32 | export function openExternalUrl(url: string | URL, skipValidityCheck: boolean = false) { | 32 | export function openExternalUrl( |
33 | url: string | URL, | ||
34 | skipValidityCheck: boolean = false, | ||
35 | ) { | ||
33 | debug('Open url:', url, 'with skipValidityCheck:', skipValidityCheck); | 36 | debug('Open url:', url, 'with skipValidityCheck:', skipValidityCheck); |
34 | if (skipValidityCheck || isValidExternalURL(url)) { | 37 | if (skipValidityCheck || isValidExternalURL(url)) { |
35 | shell.openExternal(url.toString()); | 38 | shell.openExternal(url.toString()); |