mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-12-22 12:50:36 +01:00
toBlob is not a constructor
This commit is contained in:
parent
0930928df3
commit
0d581403c1
@ -359,6 +359,11 @@
|
|||||||
object: "HTMLCanvasElement",
|
object: "HTMLCanvasElement",
|
||||||
fakeGenerator: function(checker){
|
fakeGenerator: function(checker){
|
||||||
return function toBlob(callback){
|
return function toBlob(callback){
|
||||||
|
if (this instanceof toBlob){
|
||||||
|
throw new extension.getWrapped(window).TypeError(
|
||||||
|
"HTMLCanvasElement.prototype.toBlob is not a constructor"
|
||||||
|
);
|
||||||
|
}
|
||||||
return checkerWrapper(checker, this, arguments, useFakeCanvasCallback);
|
return checkerWrapper(checker, this, arguments, useFakeCanvasCallback);
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user