diff options
Diffstat (limited to 'src/helpers/userAgent-helpers.ts')
-rw-r--r-- | src/helpers/userAgent-helpers.ts | 2 |
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 { | |||
13 | function macOS() { | 13 | function 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 | } |