aboutsummaryrefslogtreecommitdiffstats
path: root/src/helpers
diff options
context:
space:
mode:
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() {