diff options
author | hackademix | 2019-09-27 15:33:11 +0200 |
---|---|---|
committer | hackademix | 2019-09-29 17:29:38 +0200 |
commit | 78063f341225b85d68ef45faad5197672d5a01c2 (patch) | |
tree | 5840081585c93f2d078a6a392a08739761b70e66 /src/content | |
parent | c9e06983ba330ab70d2956e7287dde263278128a (diff) | |
download | noscript-78063f341225b85d68ef45faad5197672d5a01c2.tar.gz noscript-78063f341225b85d68ef45faad5197672d5a01c2.tar.xz noscript-78063f341225b85d68ef45faad5197672d5a01c2.zip |
Remove ChildPolicies and its dependencies.
Diffstat (limited to 'src/content')
-rw-r--r-- | src/content/dynamicNS.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/content/dynamicNS.js b/src/content/dynamicNS.js deleted file mode 100644 index 51a2701..0000000 --- a/src/content/dynamicNS.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict'; - -// ensure the order which manifest scripts and dynamically registered scripts -// are executed in doesn't matter for initialization, by using a stub. - -if (!this.ns) { - let deferredSetup = null; - let nsStub = this.ns = { - config: {}, - setup(permissions, MARKER) { - deferredSetup = [permissions, MARKER]; - }, - merge: ns => { - ns.config = Object.assign(ns.config, nsStub.config); - this.ns = ns; - if (deferredSetup) { - ns.setup(...deferredSetup); - } - } - } -} |