aboutsummaryrefslogtreecommitdiff
path: root/webAO/master.js
diff options
context:
space:
mode:
authorsD <stoned@derpymail.org>2019-12-31 00:34:46 +0100
committersD <stoned@derpymail.org>2019-12-31 00:34:46 +0100
commitddec46497e13ca577e3b8e238d00174b2617635c (patch)
treebc1b739aba3f913b5aca914d50ef1566757cb091 /webAO/master.js
parent88f41707fbe74433ca27a351697095ac09613963 (diff)
don't read the ID from the cookie, as people easily change it
Diffstat (limited to 'webAO/master.js')
-rw-r--r--webAO/master.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/webAO/master.js b/webAO/master.js
index 863c311..5d51d24 100644
--- a/webAO/master.js
+++ b/webAO/master.js
@@ -11,12 +11,12 @@ const fp = new Fingerprint({
/** An emulated, semi-unique HDID that is generally safe for HDID bans. */
const cookieid = getCookie("fingerprint");
let hdid;
-if (cookieid) {
- hdid = cookieid;
-} else {
+
+
+
hdid = fp.get();
setCookie("fingerprint",hdid);
-}
+
console.log(`Your emulated HDID is ${hdid}`);
let oldLoading = false;