diff options
author | hackademix | 2019-03-16 15:48:55 +0100 |
---|---|---|
committer | hackademix | 2019-03-16 15:48:55 +0100 |
commit | 4f901eb1fa7ec7a2806932282920f97c1667d768 (patch) | |
tree | 50b61c242ba419db36b2706d95c143f0b5c1f5ab /src/bg | |
parent | 19d41bcc4e8bcd9b2320efdedde6f9b972498c82 (diff) | |
download | noscript-4f901eb1fa7ec7a2806932282920f97c1667d768.tar.gz noscript-4f901eb1fa7ec7a2806932282920f97c1667d768.tar.xz noscript-4f901eb1fa7ec7a2806932282920f97c1667d768.zip |
Fixed ns.requestCan() using hardcoded "script" rather than its capability argument.
Diffstat (limited to 'src/bg')
-rw-r--r-- | src/bg/main.js | 2 |
1 files changed, 1 insertions, 1 deletions
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() { |