From b1733d439298e81eefb38b3dc250dcae6f90a6e1 Mon Sep 17 00:00:00 2001 From: hackademix Date: Sun, 27 Oct 2019 14:18:51 +0000 Subject: - Use this refence instead of global ns property. --- src/common/Policy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common') 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)), -- cgit v1.2.3