From e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b Mon Sep 17 00:00:00 2001 From: Vijay A Date: Wed, 24 May 2023 06:57:50 +0530 Subject: Upgrade npm modules --- src/helpers/update-helpers.ts | 2 +- src/helpers/userAgent-helpers.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/helpers') 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( } export function updateVersionParse(updateVersion: string): string { - return updateVersion !== '' ? `?version=${updateVersion}` : ''; + return updateVersion === '' ? '' : `?version=${updateVersion}`; } export 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() { if (cpuName && /\(/.test(cpuName)) { cpuName = cpuName.split('(')[0]; } - return `Macintosh; ${cpuName} Mac OS X ${version.replace(/\./g, '_')}`; + return `Macintosh; ${cpuName} Mac OS X ${version.replaceAll('.', '_')}`; } function windows() { -- cgit v1.2.3-54-g00ecf