1
0
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:
kkapsner 2021-03-06 11:08:55 +01:00
parent 0930928df3
commit 0d581403c1

View File

@ -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);
};
},