summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhackademix2019-10-27 14:18:51 +0000
committerhackademix2019-10-27 22:05:35 +0000
commitb1733d439298e81eefb38b3dc250dcae6f90a6e1 (patch)
treef043bc63d5659538a6082d32c3772e397a4fe549
parentbb64b759b19b50013d61e4943842a67bbf1d4fb2 (diff)
downloadnoscript-b1733d439298e81eefb38b3dc250dcae6f90a6e1.tar.gz
noscript-b1733d439298e81eefb38b3dc250dcae6f90a6e1.tar.xz
noscript-b1733d439298e81eefb38b3dc250dcae6f90a6e1.zip
- Use this refence instead of global ns property.
-rw-r--r--src/common/Policy.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/Policy.js b/src/common/Policy.js
index 71e6ff9..401b19f 100644
--- a/src/common/Policy.js
+++ b/src/common/Policy.js
@@ -465,7 +465,7 @@ var {Permissions, Policy, Sites} = (() => {
}
cascadeRestrictions(perms, topUrl) {
- let topPerms = ns.policy.get(topUrl, topUrl).perms;
+ let topPerms = this.get(topUrl, topUrl).perms;
if (topPerms !== perms) {
let topCaps = topPerms.capabilities;
perms = new Permissions([...perms.capabilities].filter(c => topCaps.has(c)),