From 829a68fb0270c17ca8b7c9912dcaed2c54b4d5bb Mon Sep 17 00:00:00 2001 From: mic Date: Tue, 15 Oct 2024 21:35:21 +0200 Subject: [PATCH] getMailData renamed to getMailBody --- js/mzta-menus.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/mzta-menus.js b/js/mzta-menus.js index 7c2215af..16b39fea 100644 --- a/js/mzta-menus.js +++ b/js/mzta-menus.js @@ -74,7 +74,7 @@ export class mzta_Menus { let curr_menu_entry = {id: curr_prompt.id, is_default: curr_prompt.is_default, name: curr_prompt.name}; - const getMailData = async (tabs) => { + const getMailBody = async (tabs) => { //const tabs = await browser.tabs.query({ active: true, currentWindow: true }); return {tabId: tabs[0].id, selection: await browser.tabs.sendMessage(tabs[0].id, { command: "getSelectedText" }), @@ -85,7 +85,7 @@ export class mzta_Menus { curr_menu_entry.act = async () => { const tabs = await browser.tabs.query({ active: true, currentWindow: true }); - const msg_text = await getMailData(tabs); + const msg_text = await getMailBody(tabs); //check if a selection is needed if(String(curr_prompt.need_selected) == "1" && (msg_text.selection==='')){