From ddec46497e13ca577e3b8e238d00174b2617635c Mon Sep 17 00:00:00 2001 From: sD Date: Tue, 31 Dec 2019 00:34:46 +0100 Subject: don't read the ID from the cookie, as people easily change it --- webAO/client.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'webAO/client.js') diff --git a/webAO/client.js b/webAO/client.js index dc4aca5..ee6bad7 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -54,12 +54,13 @@ 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 lastICMessageTime = new Date(0); -- cgit