1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-06-09 14:57:47 +02:00

Set proper name for faked getContext

This commit is contained in:
kkapsner 2020-06-01 14:03:32 +02:00
parent 3e3dbf2698
commit 2c141277e8

View File

@ -296,7 +296,7 @@
},
object: "HTMLCanvasElement",
fakeGenerator: function(checker){
return function(context, contextAttributes){
return function getContext(context, contextAttributes){
return checkerWrapper(checker, this, arguments, function(args, check){
const {original} = check;
canvasContextType.set(this, context);