summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-03-09 18:50:38 +0100
committerWojtek Kosior <koszko@koszko.org>2022-03-10 11:43:59 +0100
commit8781ee152d1b0a52dfa476ee5c9a5b2b9fbd6d06 (patch)
tree6c8c9b43c39c08ae979d9fe39fb8474e4463a288
parentbace213c4f441549e9c54ef1fd6212ab0b75cb2b (diff)
downloadbrowser-extension-8781ee152d1b0a52dfa476ee5c9a5b2b9fbd6d06.tar.gz
browser-extension-8781ee152d1b0a52dfa476ee5c9a5b2b9fbd6d06.zip
fix application of default blocking rule under Chromium
-rw-r--r--background/webrequest.js3
1 files changed, 2 insertions, 1 deletions
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};