diff options
author | Vijay A <avijayr@protonmail.com> | 2021-08-17 08:49:04 +0530 |
---|---|---|
committer | Vijay A <avijayr@protonmail.com> | 2021-08-17 08:49:04 +0530 |
commit | 53defd6244e8b43d95440af8507173bf2e3739fa (patch) | |
tree | e1fce12d310db81c855ce33a0aa6610142808c81 /src/helpers | |
parent | 5.6.1-nightly.29 [skip ci] (diff) | |
download | ferdium-app-53defd6244e8b43d95440af8507173bf2e3739fa.tar.gz ferdium-app-53defd6244e8b43d95440af8507173bf2e3739fa.tar.zst ferdium-app-53defd6244e8b43d95440af8507173bf2e3739fa.zip |
refactor: Minor refactoring to handle NaN in 'setBadge'
Diffstat (limited to 'src/helpers')
-rw-r--r-- | src/helpers/url-helpers.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers/url-helpers.ts b/src/helpers/url-helpers.ts index e330fae40..3657ae693 100644 --- a/src/helpers/url-helpers.ts +++ b/src/helpers/url-helpers.ts | |||
@@ -30,7 +30,7 @@ export async function openPath(folderName: string) { | |||
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(url: string | URL, skipValidityCheck: boolean = false) { |
33 | debug('for url:', url, 'skipValidityCheck:', skipValidityCheck); | 33 | debug('Open url:', url, 'with skipValidityCheck:', skipValidityCheck); |
34 | if (skipValidityCheck || isValidExternalURL(url)) { | 34 | if (skipValidityCheck || isValidExternalURL(url)) { |
35 | shell.openExternal(url.toString()); | 35 | shell.openExternal(url.toString()); |
36 | } | 36 | } |