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:
parent
b8ba76300e
commit
37fd9f7a36
4 changed files with 24 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue