aboutsummaryrefslogtreecommitdiffstats
path: root/src/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'src/helpers')
-rw-r--r--src/helpers/userAgent-helpers.ts11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/helpers/userAgent-helpers.ts b/src/helpers/userAgent-helpers.ts
index 73c8bfd03..dea49ad7e 100644
--- a/src/helpers/userAgent-helpers.ts
+++ b/src/helpers/userAgent-helpers.ts
@@ -1,12 +1,17 @@
1import os from 'os'; 1import os from 'os';
2import macosVersion from 'macos-version'; 2import { macOSVersion } from 'macos-version';
3import { chrome } from 'useragent-generator'; 3import { chrome } from 'useragent-generator';
4import { 4import {
5 chromeVersion, isMac, isWindows, is64Bit, osArch, osRelease, 5 chromeVersion,
6 isMac,
7 isWindows,
8 is64Bit,
9 osArch,
10 osRelease,
6} from '../environment'; 11} from '../environment';
7 12
8function macOS() { 13function macOS() {
9 const version = macosVersion() || ''; 14 const version = macOSVersion() || '';
10 let cpuName = os.cpus()[0].model.split(' ')[0]; 15 let cpuName = os.cpus()[0].model.split(' ')[0];
11 if (cpuName && cpuName.match(/\(/)) { 16 if (cpuName && cpuName.match(/\(/)) {
12 cpuName = cpuName.split('(')[0]; 17 cpuName = cpuName.split('(')[0];