aboutsummaryrefslogtreecommitdiff
path: root/bg
diff options
context:
space:
mode:
authorhackademix <giorgio@maone.net>2019-04-12 01:26:11 +0200
committerhackademix <giorgio@maone.net>2019-04-12 01:26:11 +0200
commit0aacfa705e307286aa87861de5442785b1b51f65 (patch)
treefea981b071d8b3c651b04a398c1cd4d325b09df3 /bg
parent2bee3260b45b559eb3bc75c6421dc7e573571cdb (diff)
More consistent and efficient blacklisting.
Diffstat (limited to 'bg')
-rw-r--r--bg/ResponseProcessor.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/bg/ResponseProcessor.js b/bg/ResponseProcessor.js
index 1aa89de..2c613c9 100644
--- a/bg/ResponseProcessor.js
+++ b/bg/ResponseProcessor.js
@@ -78,7 +78,7 @@ class ResponseTextFilter {
let res = await handler.pre(response);
if (res) return res;
if (handler.post) handler = handler.post;
- if (typeof handler !== "function") ResponseProcessor.ACCEPT;
+ if (typeof handler !== "function") return ResponseProcessor.ACCEPT;
}
let {requestId, responseHeaders} = request;