From 8781ee152d1b0a52dfa476ee5c9a5b2b9fbd6d06 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Wed, 9 Mar 2022 18:50:38 +0100 Subject: fix application of default blocking rule under Chromium --- background/webrequest.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/background/webrequest.js b/background/webrequest.js index faff837..a523772 100644 --- a/background/webrequest.js +++ b/background/webrequest.js @@ -134,7 +134,8 @@ function on_before_request(details) return {cancel: true}; } - const policy = decide_policy(tree, queried_url, default_allow, secret); + const policy = + decide_policy(tree, queried_url, !!default_allow.value, secret); if (!policy.error) { const encoded_policy = encodeURIComponent(JSON.stringify(policy)); return {redirectUrl: redirect_url_template + encoded_policy}; -- cgit v1.2.3