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

Introduced maxFakeSize.

This commit is contained in:
kkapsner 2016-05-10 08:01:21 +02:00
parent 8240bf6007
commit b8ba76300e
7 changed files with 37 additions and 23 deletions

View file

@ -34,17 +34,18 @@
token
)[0];
},
prefs: function(name){
return sendSyncMessage(
"canvasBlocker-pref-get",
name
)[0];
}
prefs
});
}
function notify(data){
sendAsyncMessage("canvasBlocker-notify", data);
}
function prefs(name){
return sendSyncMessage(
"canvasBlocker-pref-get",
name
)[0];
}
function interceptWrapper(ev){
if (enabled){
@ -55,7 +56,7 @@
var window = ev.target.defaultView;
intercept(
{subject: window},
{check, ask: askWrapper, notify}
{check, ask: askWrapper, notify, prefs}
);
}
}