diff options
-rw-r--r-- | src/content/DocumentCSP.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/content/DocumentCSP.js b/src/content/DocumentCSP.js index 63f5d1e..7632ce7 100644 --- a/src/content/DocumentCSP.js +++ b/src/content/DocumentCSP.js @@ -26,10 +26,8 @@ class DocumentCSP { try { parent.insertBefore(meta, parent.firstChild); debug(`Failsafe <meta> CSP inserted in the DOM: "%s"`, header.value); - if (capabilities.has("script")) { - meta.remove(); - if (!head) parent.remove(); - } + meta.remove(); + if (!head) parent.remove(); } catch (e) { error(e, "Error inserting CSP %s in the DOM", header && header.value); } |