1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 12:50:36 +01:00

getImageData does not need to be faked in input mode when facing a non 2d context.

Fixes #137
This commit is contained in:
kkapsner 2017-10-12 00:25:12 +02:00
parent 0204d92fb4
commit 03bf34d092
2 changed files with 2 additions and 8 deletions

View File

@ -268,13 +268,7 @@
type: "readout", type: "readout",
getStatus: function(obj, status){ getStatus: function(obj, status){
status = Object.create(status); status = Object.create(status);
if (hasType(status, "input")){ status.active = hasType(status, "readout");
var contextType = canvasContextType.get(obj && obj.canvas);
status.active = contextType !== "2d";
}
else {
status.active = hasType(status, "readout");
}
return status; return status;
}, },
object: "CanvasRenderingContext2D", object: "CanvasRenderingContext2D",

View File

@ -11,7 +11,7 @@ Version 0.4.1:
- -
fixes: fixes:
- - unnecessary check for context type in getImageData broke websites
Version 0.4.0.2: Version 0.4.0.2:
fixes: fixes: