aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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};