diff options
author | hackademix | 2019-10-27 14:18:51 +0000 |
---|---|---|
committer | hackademix | 2019-10-27 22:05:35 +0000 |
commit | b1733d439298e81eefb38b3dc250dcae6f90a6e1 (patch) | |
tree | f043bc63d5659538a6082d32c3772e397a4fe549 /src | |
parent | bb64b759b19b50013d61e4943842a67bbf1d4fb2 (diff) | |
download | noscript-b1733d439298e81eefb38b3dc250dcae6f90a6e1.tar.gz noscript-b1733d439298e81eefb38b3dc250dcae6f90a6e1.tar.xz noscript-b1733d439298e81eefb38b3dc250dcae6f90a6e1.zip |
- Use this refence instead of global ns property.
Diffstat (limited to 'src')
-rw-r--r-- | src/common/Policy.js | 2 |
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)), |