aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.js
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/client.js')
-rw-r--r--webAO/client.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/webAO/client.js b/webAO/client.js
index f5fe9f9..21024b2 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -47,12 +47,12 @@ let selectedShout = 0;
let extrafeatures = [];
let hdid;
-const options = {fonts: {extendedJsFonts: true, userDefinedFonts: ["Ace Attorney", "8bitoperator", "DINEngschrift"]}, excludes: {userAgent: true}};
+const options = {fonts: {extendedJsFonts: true, userDefinedFonts: ["Ace Attorney", "8bitoperator", "DINEngschrift"]}, excludes: {userAgent: true, enumerateDevices: true}};
if (window.requestIdleCallback) {
requestIdleCallback(function () {
Fingerprint2.get(options, function (components) {
- hdid = Fingerprint2.x64hash128(components.join(''), 31);
+ hdid = Fingerprint2.x64hash128(components.reduce((a, b) => `${a.value || a}, ${b.value}`),31);
client = new Client(serverIP);
viewport = new Viewport();
@@ -65,7 +65,7 @@ if (window.requestIdleCallback) {
} else {
setTimeout(function () {
Fingerprint2.get(options, function (components) {
- hdid = Fingerprint2.x64hash128(components.join(''), 31);
+ hdid = Fingerprint2.x64hash128(components.reduce((a, b) => `${a.value || a}, ${b.value}`),31);
client = new Client(serverIP);
viewport = new Viewport();