From 78063f341225b85d68ef45faad5197672d5a01c2 Mon Sep 17 00:00:00 2001 From: hackademix Date: Fri, 27 Sep 2019 15:33:11 +0200 Subject: Remove ChildPolicies and its dependencies. --- src/content/dynamicNS.js | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 src/content/dynamicNS.js (limited to 'src/content') 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); - } - } - } -} -- cgit v1.2.3