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:
parent
95605ef746
commit
2f4fca10ab
4 changed files with 14 additions and 12 deletions
|
@ -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;
|
||||
};
|
||||
}());
|
Loading…
Add table
Add a link
Reference in a new issue