From 136795a45e96c2f5cd7fa7d1807f614dfb66f34b Mon Sep 17 00:00:00 2001 From: Mic Date: Fri, 13 Dec 2024 00:48:00 +0100 Subject: [PATCH] correctly returning a response with the internal messaging system even when asking for additional text --- js/mzta-menus.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/mzta-menus.js b/js/mzta-menus.js index 0ab1733b..cf0bbc58 100644 --- a/js/mzta-menus.js +++ b/js/mzta-menus.js @@ -93,7 +93,7 @@ export class mzta_Menus { //A selection is needed, but nothing is selected! //alert(browser.i18n.getMessage('prompt_selection_needed')); browser.tabs.sendMessage(tabs[0].id, { command: "sendAlert", curr_tab_type: tabs[0].type, message : browser.i18n.getMessage('prompt_selection_needed') }); - return; + return {ok:'0'}; } let body_text = '';