From 280d3c42d9d519d381b8bae64e1dfc7e2cf42a2f Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Mon, 3 Jan 2022 22:30:52 +0100 Subject: improve and test the dafult policy dialog This commit also fixes some bugs that manifested themselves spuriously. --- background/webrequest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'background/webrequest.js') diff --git a/background/webrequest.js b/background/webrequest.js index e32947a..9787318 100644 --- a/background/webrequest.js +++ b/background/webrequest.js @@ -74,7 +74,7 @@ function on_headers_received(details) let headers = details.responseHeaders; - const policy = decide_policy(tree, details.url, default_allow, secret); + const policy = decide_policy(tree, details.url, !!default_allow, secret); if (policy.allow) return; -- cgit v1.2.3