summaryrefslogtreecommitdiff
path: root/src/bg/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/bg/main.js')
-rw-r--r--src/bg/main.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bg/main.js b/src/bg/main.js
index 18abe70..7bd72a6 100644
--- a/src/bg/main.js
+++ b/src/bg/main.js
@@ -180,6 +180,10 @@
return this.policy.enforced && (tabId === -1 || !this.unrestrictedTabs.has(tabId));
},
+ requestCan(request, capability) {
+ return !this.isEnforced(request.tabId) || this.policy.can(request.url, "script", request.documentURL);
+ },
+
start() {
if (this.running) return;
this.running = true;