aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorjahoti <jahoti@tilde.team>2021-07-22 00:00:00 +0000
committerWojtek Kosior <koszko@koszko.org>2021-07-26 11:09:57 +0200
commite402e0363cd55f7f849c20c1acd96de548ebc9a6 (patch)
tree84cd250c2ebc18c0ec27a7af68ce978eb47e0a86 /common
parentfba4820bec6714115ef03bd4bdfd714ba485ac2c (diff)
downloadbrowser-extension-e402e0363cd55f7f849c20c1acd96de548ebc9a6.tar.gz
browser-extension-e402e0363cd55f7f849c20c1acd96de548ebc9a6.zip
Fix some bugs in the refined CSP handling
Diffstat (limited to 'common')
-rw-r--r--common/misc.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/misc.js b/common/misc.js
index 6af2327..0d8466e 100644
--- a/common/misc.js
+++ b/common/misc.js
@@ -159,7 +159,7 @@ function parse_csp(csp) {
let directive, directive_array;
let directives = {};
for (directive of csp.split(';')) {
- directive = directive.trim;
+ directive = directive.trim();
if (directive === '')
continue;