summaryrefslogtreecommitdiff
path: root/src/content
diff options
context:
space:
mode:
authorhackademix2018-09-09 18:59:52 +0200
committerhackademix2018-09-09 18:59:52 +0200
commit305c6779a71d61be9dc7b7eb79fa2c5fab410a9e (patch)
treed3e4c3398859ffd0679c6eecbdd5d07322662041 /src/content
parent193e706a997ec91e75b5eff664c0d3766ba5d469 (diff)
downloadnoscript-305c6779a71d61be9dc7b7eb79fa2c5fab410a9e.tar.gz
noscript-305c6779a71d61be9dc7b7eb79fa2c5fab410a9e.tar.xz
noscript-305c6779a71d61be9dc7b7eb79fa2c5fab410a9e.zip
Fix for various content script timing related issues.
Diffstat (limited to 'src/content')
-rw-r--r--src/content/content.js3
-rw-r--r--src/content/dynamicNS.js4
2 files changed, 3 insertions, 4 deletions
diff --git a/src/content/content.js b/src/content/content.js
index c501282..b185f4f 100644
--- a/src/content/content.js
+++ b/src/content/content.js
@@ -54,8 +54,7 @@ var notifyPage = async () => {
debug(`No answer to fetchChildPolicy message. This should not be happening.`);
return;
}
- ns.config.CURRENT = childPolicy.CURRENT;
- ns.setup(childPolicy.DEFAULT, childPolicy.MARKER);
+ ns.setup(childPolicy.CURRENT, childPolicy.MARKER);
return;
}
diff --git a/src/content/dynamicNS.js b/src/content/dynamicNS.js
index cdd7a0e..f865e8b 100644
--- a/src/content/dynamicNS.js
+++ b/src/content/dynamicNS.js
@@ -7,8 +7,8 @@ if (!this.ns) {
let deferredSetup = null;
let nsStub = this.ns = {
config: {},
- setup(DEFAULT, MARKER) {
- deferredSetup = [DEFAULT, MARKER];
+ setup(CURRENT, MARKER) {
+ deferredSetup = [CURRENT, MARKER];
},
merge: ns => {
ns.config = Object.assign(ns.config, nsStub.config);