aboutsummaryrefslogtreecommitdiffstats
path: root/src/helpers
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2023-05-24 06:57:50 +0530
committerLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2023-05-24 16:40:43 +0530
commite245b4fa229bee1e2ab97fcb42de3831b8bdbe5b (patch)
treed684777b3fde5470c9f99304a9f022422ffb8045 /src/helpers
parent6.3.0-nightly.9 [skip ci] (diff)
downloadferdium-app-e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b.tar.gz
ferdium-app-e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b.tar.zst
ferdium-app-e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b.zip
Upgrade npm modules
Diffstat (limited to 'src/helpers')
-rw-r--r--src/helpers/update-helpers.ts2
-rw-r--r--src/helpers/userAgent-helpers.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/helpers/update-helpers.ts b/src/helpers/update-helpers.ts
index daeef5413..9a36850fc 100644
--- a/src/helpers/update-helpers.ts
+++ b/src/helpers/update-helpers.ts
@@ -13,7 +13,7 @@ export function getFerdiumVersion(
13} 13}
14 14
15export function updateVersionParse(updateVersion: string): string { 15export function updateVersionParse(updateVersion: string): string {
16 return updateVersion !== '' ? `?version=${updateVersion}` : ''; 16 return updateVersion === '' ? '' : `?version=${updateVersion}`;
17} 17}
18 18
19export function onAuthGoToReleaseNotes( 19export function onAuthGoToReleaseNotes(
diff --git a/src/helpers/userAgent-helpers.ts b/src/helpers/userAgent-helpers.ts
index 52568555c..c811b34c9 100644
--- a/src/helpers/userAgent-helpers.ts
+++ b/src/helpers/userAgent-helpers.ts
@@ -16,7 +16,7 @@ function macOS() {
16 if (cpuName && /\(/.test(cpuName)) { 16 if (cpuName && /\(/.test(cpuName)) {
17 cpuName = cpuName.split('(')[0]; 17 cpuName = cpuName.split('(')[0];
18 } 18 }
19 return `Macintosh; ${cpuName} Mac OS X ${version.replace(/\./g, '_')}`; 19 return `Macintosh; ${cpuName} Mac OS X ${version.replaceAll('.', '_')}`;
20} 20}
21 21
22function windows() { 22function windows() {