diff options
author | hackademix | 2019-04-08 13:08:17 +0200 |
---|---|---|
committer | hackademix | 2019-04-08 13:08:17 +0200 |
commit | a489c192d6ab3bc70cf6af90f4a60c04a2a76a9d (patch) | |
tree | 5dff76fa5c306296688b0fd694e8a3a60bd10564 /src/bg/ChildPolicies.js | |
parent | 5ffd53ee89767e1ca08d41516e968aab06cf42d3 (diff) | |
download | noscript-a489c192d6ab3bc70cf6af90f4a60c04a2a76a9d.tar.gz noscript-a489c192d6ab3bc70cf6af90f4a60c04a2a76a9d.tar.xz noscript-a489c192d6ab3bc70cf6af90f4a60c04a2a76a9d.zip |
Make RequestGuard's header processing synchronous on non-supporting browsers.
Diffstat (limited to 'src/bg/ChildPolicies.js')
-rw-r--r-- | src/bg/ChildPolicies.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/bg/ChildPolicies.js b/src/bg/ChildPolicies.js index e5024e7..58b18ca 100644 --- a/src/bg/ChildPolicies.js +++ b/src/bg/ChildPolicies.js @@ -51,10 +51,6 @@ } }; - if (!browser.contentScripts) { // #chromium fallback - Scripts.register = () => {}; - } - let flatten = arr => arr.reduce((a, b) => a.concat(Array.isArray(b) ? flatten(b) : b), []); let protocolRx = /^(\w+):/i; @@ -196,4 +192,9 @@ }, }; + + if (!browser.contentScripts) { // #chromium fallback + Scripts.register = ChildPolicies.update = () => {}; + } + } |