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

Made checkStack available during interception.

This commit is contained in:
kkapsner 2016-11-13 14:51:58 +01:00
parent d122f90655
commit e4c65d415e
3 changed files with 27 additions and 11 deletions

View file

@ -26,6 +26,18 @@
return {type: [], mode: "allow"};
}
}
function checkStack(stack){
if (enabled){
var status = sendSyncMessage(
"canvasBlocker-checkStack",
stack
);
return status[0];
}
else {
return true;
}
}
function askWrapper(data){
return ask(data, {
_: function(token){
@ -56,7 +68,7 @@
var window = ev.target.defaultView;
intercept(
{subject: window},
{check, ask: askWrapper, notify, prefs}
{check, checkStack, ask: askWrapper, notify, prefs}
);
}
}