summaryrefslogtreecommitdiff
path: root/src/bg/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/bg/main.js')
-rw-r--r--src/bg/main.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bg/main.js b/src/bg/main.js
index bae534f..acc849d 100644
--- a/src/bg/main.js
+++ b/src/bg/main.js
@@ -140,8 +140,9 @@
return await Settings.import(data);
},
- fetchChildPolicy({url, contextUrl}, sender) {
+ async fetchChildPolicy({url, contextUrl}, sender) {
let {tab, frameId} = sender;
+ await ns.initializing;
let policy = ns.policy;
if (!policy) {
console.log("Policy is null, initializing: %o, sending fallback.", ns.initializing);
@@ -223,7 +224,7 @@
if (this.running) return;
this.running = true;
browser.runtime.onSyncMessage.addListener(onSyncMessage);
- deferWebTraffic(this.initalizing = init(),
+ deferWebTraffic(this.initializing = init(),
async () => {
Commands.install();