mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 20:46:39 +02:00
toBlob is not a constructor
This commit is contained in:
parent
0930928df3
commit
0d581403c1
1 changed files with 5 additions and 0 deletions
|
@ -359,6 +359,11 @@
|
|||
object: "HTMLCanvasElement",
|
||||
fakeGenerator: function(checker){
|
||||
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);
|
||||
};
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue