summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhackademix2019-09-27 15:34:12 +0200
committerhackademix2019-09-29 17:29:38 +0200
commitc245237c96acc48864c66fcd63fe2b236c7dfc79 (patch)
treef21ae81b3e7e81f0e129c44342b0dd4f284b67b5 /src
parent6208e7dbb3b813678e06380d4ec9742045fb8f69 (diff)
downloadnoscript-c245237c96acc48864c66fcd63fe2b236c7dfc79.tar.gz
noscript-c245237c96acc48864c66fcd63fe2b236c7dfc79.tar.xz
noscript-c245237c96acc48864c66fcd63fe2b236c7dfc79.zip
Fix typo "breaking" yet to be implemented contextual permissions.
Diffstat (limited to 'src')
-rw-r--r--src/common/Policy.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/Policy.js b/src/common/Policy.js
index 3f7e0c7..d67c24f 100644
--- a/src/common/Policy.js
+++ b/src/common/Policy.js
@@ -250,11 +250,12 @@ var {Permissions, Policy, Sites} = (() => {
return true;
}
clone() {
- return new Permissions(this.capabilities, this.temp, this.context);
+ return new Permissions(this.capabilities, this.temp, this.contextual);
}
get tempTwin() {
return this._tempTwin || (this._tempTwin = new Permissions(this.capabilities, true, this.contextual));
}
+
}
Permissions.ALL = ["script", "object", "media", "frame", "font", "webgl", "fetch", "other"];