1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-03 12:06:31 +02:00

Only Firefox < 57 block on pre-intercept

This commit is contained in:
kkapsner 2017-12-13 20:15:50 +01:00
parent 67438d15ff
commit 3fcc5774c2
3 changed files with 32 additions and 22 deletions

View file

@ -55,7 +55,8 @@
secondFingerprint = fingerPrint();
if (firstFingerprint === secondFingerprint){
hash(firstFingerprint).then(function(hash){
document.body.appendChild(document.createTextNode("fingerprint consistent (" + firstFingerprint + ") -> good!"));
document.body.appendChild(document.createTextNode("fingerprint consistent (" + hash + ") -> good!"));
document.body.style.backgroundColor = "green";
});
}
else {
@ -68,6 +69,7 @@
}
else {
document.body.textContent = "context API blocked";
document.body.style.backgroundColor = "orange";
}
</script>
</body></html>