summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorhackademix2018-08-21 23:54:04 +0200
committerhackademix2018-08-21 23:54:04 +0200
commit1de1db3c29d11f49e130d44db359d1187f6c24a0 (patch)
treea59d10d32eeb0dcf9a6dfbac893b68af6fcc16d3 /src/ui
parent91334fe94477fdbcb85fcf93d87e3c73294da106 (diff)
downloadnoscript-1de1db3c29d11f49e130d44db359d1187f6c24a0.tar.gz
noscript-1de1db3c29d11f49e130d44db359d1187f6c24a0.tar.xz
noscript-1de1db3c29d11f49e130d44db359d1187f6c24a0.zip
Fixed possible surprises in background script message handling.
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/ui.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/ui.js b/src/ui/ui.js
index f721042..be9063b 100644
--- a/src/ui/ui.js
+++ b/src/ui/ui.js
@@ -59,11 +59,11 @@ var UI = (() => {
debug("Imported", Policy);
},
async pullSettings() {
- browser.runtime.sendMessage({type: "NoScript.broadcastSettings", tabId: UI.tabId});
+ browser.runtime.sendMessage({action: "broadcastSettings", tabId: UI.tabId});
},
async updateSettings({policy, xssUserChoices, unrestrictedTab, local, sync, reloadAffected}) {
if (policy) policy = policy.dry(true);
- return await browser.runtime.sendMessage({type: "NoScript.updateSettings",
+ return await browser.runtime.sendMessage({action: "updateSettings",
policy,
xssUserChoices,
unrestrictedTab,
@@ -75,10 +75,10 @@ var UI = (() => {
},
async exportSettings() {
- return await browser.runtime.sendMessage({type: "NoScript.exportSettings"});
+ return await browser.runtime.sendMessage({action: "exportSettings"});
},
async importSettings(data) {
- return await browser.runtime.sendMessage({type: "NoScript.importSettings", data});
+ return await browser.runtime.sendMessage({action: "importSettings", data});
},
async revokeTemp() {