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:
parent
0204d92fb4
commit
03bf34d092
@ -268,13 +268,7 @@
|
||||
type: "readout",
|
||||
getStatus: function(obj, status){
|
||||
status = Object.create(status);
|
||||
if (hasType(status, "input")){
|
||||
var contextType = canvasContextType.get(obj && obj.canvas);
|
||||
status.active = contextType !== "2d";
|
||||
}
|
||||
else {
|
||||
status.active = hasType(status, "readout");
|
||||
}
|
||||
status.active = hasType(status, "readout");
|
||||
return status;
|
||||
},
|
||||
object: "CanvasRenderingContext2D",
|
||||
|
@ -11,7 +11,7 @@ Version 0.4.1:
|
||||
-
|
||||
|
||||
fixes:
|
||||
-
|
||||
- unnecessary check for context type in getImageData broke websites
|
||||
|
||||
Version 0.4.0.2:
|
||||
fixes:
|
||||
|
Loading…
x
Reference in New Issue
Block a user