summaryrefslogtreecommitdiff
path: root/src/bg
diff options
context:
space:
mode:
authorRusty Bird2018-08-27 22:29:16 +0000
committerRusty Bird2018-08-27 22:29:16 +0000
commit26bfd899f91b5517074d66c5d72ea0917a3088a0 (patch)
tree893d1fb4d937677224b713b6696dca33bd3c0753 /src/bg
parentc646f09a2bfb6e0439df0ffcf2a07b393aa8cac1 (diff)
downloadnoscript-26bfd899f91b5517074d66c5d72ea0917a3088a0.tar.gz
noscript-26bfd899f91b5517074d66c5d72ea0917a3088a0.tar.xz
noscript-26bfd899f91b5517074d66c5d72ea0917a3088a0.zip
Broadcast a "started" message after initialization
Other extensions listening in on NoScript's messages (e.g. Torbutton) can take this message as an indication that it's now safe to send an "updateSettings" message to NoScript without immediately getting clobbered by the configuration loader. See https://trac.torproject.org/projects/tor/ticket/26520 for context.
Diffstat (limited to 'src/bg')
-rw-r--r--src/bg/main.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bg/main.js b/src/bg/main.js
index 47d28a3..ac49865 100644
--- a/src/bg/main.js
+++ b/src/bg/main.js
@@ -180,6 +180,7 @@
await include("/bg/Settings.js");
Messages.addHandler(messageHandler);
+ await Messages.send("started");
log("STARTED");
this.devMode = (await browser.management.getSelf()).installType === "development";