aboutsummaryrefslogtreecommitdiffstats
path: root/src/helpers
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-08-17 08:49:04 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-08-17 08:49:04 +0530
commit53defd6244e8b43d95440af8507173bf2e3739fa (patch)
treee1fce12d310db81c855ce33a0aa6610142808c81 /src/helpers
parent5.6.1-nightly.29 [skip ci] (diff)
downloadferdium-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.ts2
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
32export function openExternalUrl(url: string | URL, skipValidityCheck: boolean = false) { 32export 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 }