diff options
author | 2021-08-16 23:13:06 +0530 | |
---|---|---|
committer | 2021-08-16 23:13:06 +0530 | |
commit | bbed06e2ba255199703343625129712ef7707697 (patch) | |
tree | 19a525fbd1d621a6e561b1a687195269e54f43d5 /src/helpers/userAgent-helpers.ts | |
parent | chore: update outdated node_modules (#1807) (diff) | |
download | ferdium-app-bbed06e2ba255199703343625129712ef7707697.tar.gz ferdium-app-bbed06e2ba255199703343625129712ef7707697.tar.zst ferdium-app-bbed06e2ba255199703343625129712ef7707697.zip |
Revert "chore: update outdated node_modules (#1807)"
This reverts commit 26a9dba22236bc22a7612107630282cfe02d20e0.
Diffstat (limited to 'src/helpers/userAgent-helpers.ts')
-rw-r--r-- | src/helpers/userAgent-helpers.ts | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/helpers/userAgent-helpers.ts b/src/helpers/userAgent-helpers.ts index dea49ad7e..73c8bfd03 100644 --- a/src/helpers/userAgent-helpers.ts +++ b/src/helpers/userAgent-helpers.ts | |||
@@ -1,17 +1,12 @@ | |||
1 | import os from 'os'; | 1 | import os from 'os'; |
2 | import { macOSVersion } from 'macos-version'; | 2 | import macosVersion from 'macos-version'; |
3 | import { chrome } from 'useragent-generator'; | 3 | import { chrome } from 'useragent-generator'; |
4 | import { | 4 | import { |
5 | chromeVersion, | 5 | chromeVersion, isMac, isWindows, is64Bit, osArch, osRelease, |
6 | isMac, | ||
7 | isWindows, | ||
8 | is64Bit, | ||
9 | osArch, | ||
10 | osRelease, | ||
11 | } from '../environment'; | 6 | } from '../environment'; |
12 | 7 | ||
13 | function macOS() { | 8 | function macOS() { |
14 | const version = macOSVersion() || ''; | 9 | const version = macosVersion() || ''; |
15 | let cpuName = os.cpus()[0].model.split(' ')[0]; | 10 | let cpuName = os.cpus()[0].model.split(' ')[0]; |
16 | if (cpuName && cpuName.match(/\(/)) { | 11 | if (cpuName && cpuName.match(/\(/)) { |
17 | cpuName = cpuName.split('(')[0]; | 12 | cpuName = cpuName.split('(')[0]; |