summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bg/main.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bg/main.js b/src/bg/main.js
index acc849d..8ddfbfd 100644
--- a/src/bg/main.js
+++ b/src/bg/main.js
@@ -141,8 +141,11 @@
},
async fetchChildPolicy({url, contextUrl}, sender) {
- let {tab, frameId} = sender;
await ns.initializing;
+ return (this.fetchChildPolicy = this.fetchChildPolicySync)(...arguments);
+ },
+ fetchChildPolicySync({url, contextUrl}, sender) {
+ let {tab, frameId} = sender;
let policy = ns.policy;
if (!policy) {
console.log("Policy is null, initializing: %o, sending fallback.", ns.initializing);