This commit is contained in:
randogoth 2023-05-21 16:44:30 +03:00
parent c60f9d8d9d
commit 380505695e

View file

@ -74,6 +74,7 @@ function canvasFingerprint() {
ctx.fillStyle = "rgba(102, 204, 0, 0.7)"; ctx.fillStyle = "rgba(102, 204, 0, 0.7)";
ctx.fillText(txt, 4, 17); ctx.fillText(txt, 4, 17);
src = canvas.toDataURL(); src = canvas.toDataURL();
var hash;
for (i = 0; i < src.length; i++) { for (i = 0; i < src.length; i++) {
char = src.charCodeAt(i); char = src.charCodeAt(i);
hash = ((hash<<5)-hash)+char; hash = ((hash<<5)-hash)+char;