diff options
Diffstat (limited to 'src/helpers')
-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]; |