From 1de1db3c29d11f49e130d44db359d1187f6c24a0 Mon Sep 17 00:00:00 2001 From: hackademix Date: Tue, 21 Aug 2018 23:54:04 +0200 Subject: Fixed possible surprises in background script message handling. --- src/ui/ui.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ui') 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() { -- cgit v1.2.3