diff options
Diffstat (limited to 'src/helpers/userAgent-helpers.ts')
-rw-r--r-- | src/helpers/userAgent-helpers.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helpers/userAgent-helpers.ts b/src/helpers/userAgent-helpers.ts index fd9b8c835..b5aa02432 100644 --- a/src/helpers/userAgent-helpers.ts +++ b/src/helpers/userAgent-helpers.ts | |||
@@ -17,7 +17,7 @@ function macOS() { | |||
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 | } |
20 | return `Macintosh; ${cpuName} Mac OS X ${version.replaceAll('.', '_')}`; | 20 | return `Macintosh; ${cpuName} macOS ${version.replaceAll('.', '_')}`; |
21 | } | 21 | } |
22 | 22 | ||
23 | function windows() { | 23 | function windows() { |
@@ -33,7 +33,7 @@ function linux() { | |||
33 | } | 33 | } |
34 | 34 | ||
35 | export default function userAgent() { | 35 | export default function userAgent() { |
36 | let platformString = ''; | 36 | let platformString; |
37 | 37 | ||
38 | if (isMac) { | 38 | if (isMac) { |
39 | platformString = macOS(); | 39 | platformString = macOS(); |