diff options
author | hackademix | 2019-03-27 23:43:34 +0100 |
---|---|---|
committer | hackademix | 2019-03-27 23:43:34 +0100 |
commit | b9373c65b112342a519cb932fdebfd68a3cd174d (patch) | |
tree | c7da79232c02645389ae00d3ddbc59c0919ae0be /src/bg/ChildPolicies.js | |
parent | d77df5c9e433a2e08f1e66ded36beca5e17deff3 (diff) | |
parent | 0878ad2b0a0d3af5db66cc6a4f7d882e17a13365 (diff) | |
download | noscript-b9373c65b112342a519cb932fdebfd68a3cd174d.tar.gz noscript-b9373c65b112342a519cb932fdebfd68a3cd174d.tar.xz noscript-b9373c65b112342a519cb932fdebfd68a3cd174d.zip |
Merge branch 'chromium' into merge/chromium
Diffstat (limited to 'src/bg/ChildPolicies.js')
-rw-r--r-- | src/bg/ChildPolicies.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bg/ChildPolicies.js b/src/bg/ChildPolicies.js index 74aeccb..5727762 100644 --- a/src/bg/ChildPolicies.js +++ b/src/bg/ChildPolicies.js @@ -51,6 +51,10 @@ } }; + 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; |