From 4f901eb1fa7ec7a2806932282920f97c1667d768 Mon Sep 17 00:00:00 2001 From: hackademix Date: Sat, 16 Mar 2019 15:48:55 +0100 Subject: Fixed ns.requestCan() using hardcoded "script" rather than its capability argument. --- src/bg/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/bg/main.js b/src/bg/main.js index 7bd72a6..8ff2d55 100644 --- a/src/bg/main.js +++ b/src/bg/main.js @@ -181,7 +181,7 @@ }, requestCan(request, capability) { - return !this.isEnforced(request.tabId) || this.policy.can(request.url, "script", request.documentURL); + return !this.isEnforced(request.tabId) || this.policy.can(request.url, capability, request.documentURL); }, start() { -- cgit v1.2.3