aboutsummaryrefslogtreecommitdiffstats
path: root/src/helpers/userAgent-helpers.ts
diff options
context:
space:
mode:
authorLibravatar MCMXC <16797721+mcmxcdev@users.noreply.github.com>2023-12-07 22:37:37 -0700
committerLibravatar GitHub <noreply@github.com>2023-12-07 22:37:37 -0700
commita774c879d4cf08a76fc404771883807d27465265 (patch)
tree202c9afdeb4830d417e0ec7137a01e7981c8651c /src/helpers/userAgent-helpers.ts
parent6.6.1-nightly.17 [skip ci] (diff)
downloadferdium-app-a774c879d4cf08a76fc404771883807d27465265.tar.gz
ferdium-app-a774c879d4cf08a76fc404771883807d27465265.tar.zst
ferdium-app-a774c879d4cf08a76fc404771883807d27465265.zip
refactor: code cleanup (#1476)
- auto update `settings.json` due to new vscode version - replace deprecated `e.keyCode` with `e.key` - fix various code snippets with sonarlint and other lint plugins
Diffstat (limited to 'src/helpers/userAgent-helpers.ts')
-rw-r--r--src/helpers/userAgent-helpers.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers/userAgent-helpers.ts b/src/helpers/userAgent-helpers.ts
index bc99fbc52..42e3a9851 100644
--- a/src/helpers/userAgent-helpers.ts
+++ b/src/helpers/userAgent-helpers.ts
@@ -13,7 +13,7 @@ import {
13function macOS() { 13function macOS() {
14 const version = macosVersion() ?? ''; 14 const version = macosVersion() ?? '';
15 let cpuName = cpus()[0].model.split(' ')[0]; 15 let cpuName = cpus()[0].model.split(' ')[0];
16 if (cpuName && /\(/.test(cpuName)) { 16 if (cpuName.includes('(')) {
17 // eslint-disable-next-line prefer-destructuring 17 // eslint-disable-next-line prefer-destructuring
18 cpuName = cpuName.split('(')[0]; 18 cpuName = cpuName.split('(')[0];
19 } 19 }