Skip to content

Commit 3b1d495

Browse files
committed
feat(App): Lock user agents to Windows 10 and macOS 10.15.17 to avoid fingerprinting identification
1 parent 4b5d2f7 commit 3b1d495

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

‎src/helpers/userAgent-helpers.js‎

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
1-
2-
import os from 'os';
3-
import macosVersion from 'macos-version';
41
import { isMac, isWindows } from '../environment';
52

63
function macOS() {
7-
const version = macosVersion();
8-
9-
return `Macintosh; Intel Mac OS X ${version.replace(/\./g, '_')}`;
4+
// used fixed version (https://bugzilla.mozilla.org/show_bug.cgi?id=1679929)
5+
return 'Macintosh; Intel Mac OS X 10_15_7';
106
}
117

128
function windows() {
13-
const version = os.release();
14-
const [majorVersion, minorVersion] = version.split('.');
15-
return `Windows NT ${majorVersion}.${minorVersion}; Win64; x64`;
9+
return 'Windows NT 10.0; Win64; x64';
1610
}
1711

1812
function linux() {

0 commit comments

Comments
 (0)