1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-15 14:09:36 +02:00

Suppressed notification if maxFakeSize triggers.

This commit is contained in:
kkapsner 2016-05-11 08:58:45 +02:00
parent b8ba76300e
commit 37fd9f7a36
4 changed files with 24 additions and 6 deletions

View file

@ -34,8 +34,20 @@
case "allow":
return original;
case "fake":
notify({url: window.location.href, errorStack: error.stack}, window);
return changedFunction.fake || changedFunction.fakeGenerator(prefs) || undef;
if (changedFunction.fake){
return changedFunction.fake;
}
else {
if (changedFunction.fakeGenerator) {
return changedFunction.fakeGenerator(prefs, function(){
notify({url: window.location.href, errorStack: error.stack}, window);
});
}
else {
return undef;
}
}
//case "block":
default:
return undef;