mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-01-03 10:31:54 +01:00
Test getImageData first.
Shows if getImageData is actually protected.
This commit is contained in:
parent
8db0774d7c
commit
14ada6a7b0
@ -94,8 +94,8 @@ function topTest(){
|
||||
// draw image in window canvas
|
||||
var ctx = draw(canvas);
|
||||
return {
|
||||
url: canvas.toDataURL(),
|
||||
imageData: ctx.getImageData(0, 0, canvas.width, canvas.height),
|
||||
url: canvas.toDataURL(),
|
||||
isPointInPath: getIsPointInPath(ctx)
|
||||
};
|
||||
}
|
||||
@ -119,8 +119,8 @@ function iframeTest(iframe){
|
||||
iframe_ctx.drawImage(canvas, 0, 0);
|
||||
|
||||
return {
|
||||
url: iframe_canvas.toDataURL(),
|
||||
imageData: iframe_ctx.getImageData(0, 0, iframe_canvas.width, iframe_canvas.height),
|
||||
url: iframe_canvas.toDataURL(),
|
||||
isPointInPath: getIsPointInPath(iframe_ctx)
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user