summaryrefslogtreecommitdiff
path: root/src/bg/ChildPolicies.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/bg/ChildPolicies.js')
-rw-r--r--src/bg/ChildPolicies.js9
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 = () => {};
+ }
+
}