diff options
author | hackademix | 2019-11-25 10:55:32 +0100 |
---|---|---|
committer | hackademix | 2019-11-25 10:55:32 +0100 |
commit | cc87b488618fd3c3d297f1ded4510511bb849823 (patch) | |
tree | 96df92eed89bb2ee61ab23886e8a2af12e4b6e04 /src/content | |
parent | fd7718e6f8eeb50d154248641f30a0a8db01f2a1 (diff) | |
download | noscript-cc87b488618fd3c3d297f1ded4510511bb849823.tar.gz noscript-cc87b488618fd3c3d297f1ded4510511bb849823.tar.xz noscript-cc87b488618fd3c3d297f1ded4510511bb849823.zip |
Fixed scripts could not be enabled on file: SVG documents.
Diffstat (limited to 'src/content')
-rw-r--r-- | src/content/DocumentCSP.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content/DocumentCSP.js b/src/content/DocumentCSP.js index 9991d4f..057d564 100644 --- a/src/content/DocumentCSP.js +++ b/src/content/DocumentCSP.js @@ -10,7 +10,7 @@ class DocumentCSP { let {document} = this; if (!(document instanceof HTMLDocument)) { // this is not HTML, hence we cannot inject a <meta> CSP - if (!capabilites.has("script")) { + if (!capabilities.has("script")) { // safety net for XML (especially SVG) documents document.defaultView.addEventListener("beforescriptexecute", e => e.preventDefault(), true); |