1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-04 20:46:39 +02:00

Ask mode did not show canvas canvas any more.

This commit is contained in:
kkapsner 2018-09-21 16:42:58 +02:00
parent 95605ef746
commit 2f4fca10ab
4 changed files with 14 additions and 12 deletions

View file

@ -20,14 +20,14 @@
};
scope.checkerWrapper = function checkerWrapper(checker, object, args, callback){
const check = checker();
const check = checker.call(object);
if (check.allow){
if (check.allow === true){
return check.original.apply(object, check.window.Array.from(args));
}
return callback.call(object, args, check);
}
check.notify.call(object, "blocked");
check.notify("blocked");
return undefined;
};
}());