From 747c059a873fb8748e41e8c036e0512b2c1e20d5 Mon Sep 17 00:00:00 2001 From: hackademix Date: Thu, 21 Nov 2024 01:28:09 +0100 Subject: [PATCH] Fix UI reporting noise from requests of uninteresting types (e.g. images). --- src/bg/RequestGuard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bg/RequestGuard.js b/src/bg/RequestGuard.js index 953314c..d901dc0 100644 --- a/src/bg/RequestGuard.js +++ b/src/bg/RequestGuard.js @@ -562,7 +562,7 @@ // returns null if request.type is unknown, otherwise either ALLOW, ABORT or a redirect response function checkRequest(request) { - if (!request.type in policyTypesMap) { + if (!(request.type in policyTypesMap)) { return null; }