summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhackademix2019-11-25 10:55:32 +0100
committerhackademix2019-11-25 10:55:32 +0100
commitcc87b488618fd3c3d297f1ded4510511bb849823 (patch)
tree96df92eed89bb2ee61ab23886e8a2af12e4b6e04
parentfd7718e6f8eeb50d154248641f30a0a8db01f2a1 (diff)
downloadnoscript-cc87b488618fd3c3d297f1ded4510511bb849823.tar.gz
noscript-cc87b488618fd3c3d297f1ded4510511bb849823.tar.xz
noscript-cc87b488618fd3c3d297f1ded4510511bb849823.zip
Fixed scripts could not be enabled on file: SVG documents.
-rw-r--r--src/content/DocumentCSP.js2
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);