mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-05-29 09:28:06 +02: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…
Reference in New Issue
Block a user