summaryrefslogtreecommitdiff
path: root/background
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2021-08-18 20:54:07 +0200
committerWojtek Kosior <koszko@koszko.org>2021-08-18 20:54:07 +0200
commit3d0efa153c95f3bf4912379f910bc59d0fd563c9 (patch)
tree037779008eb9513fc7a4e30b135a769313cc7d43 /background
parent014f2a2f4e2071c35314d67285711f0f4615266b (diff)
downloadbrowser-extension-3d0efa153c95f3bf4912379f910bc59d0fd563c9.tar.gz
browser-extension-3d0efa153c95f3bf4912379f910bc59d0fd563c9.zip
remove unneeded policy-related cosole messages; restore IceCat 60 compatibility
Diffstat (limited to 'background')
-rw-r--r--background/policy_injector.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/background/policy_injector.js b/background/policy_injector.js
index 947812e..702f879 100644
--- a/background/policy_injector.js
+++ b/background/policy_injector.js
@@ -33,7 +33,6 @@ const report_only = "content-security-policy-report-only";
function headers_inject(details)
{
- console.log("ijnector details", details);
const url = details.url;
if (is_privileged_url(url))
return;
@@ -70,7 +69,7 @@ function headers_inject(details)
headers.push(hachette_header);
}
- orig_csp_headers ||=
+ orig_csp_headers = orig_csp_headers ||
headers.filter(h => csp_header_names.has(h.name.toLowerCase()));
headers = headers.filter(h => !csp_header_names.has(h.name.toLowerCase()));