getMailData renamed to getMailBody
This commit is contained in:
parent
e256684b98
commit
829a68fb02
1 changed files with 2 additions and 2 deletions
|
|
@ -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};
|
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 });
|
//const tabs = await browser.tabs.query({ active: true, currentWindow: true });
|
||||||
return {tabId: tabs[0].id,
|
return {tabId: tabs[0].id,
|
||||||
selection: await browser.tabs.sendMessage(tabs[0].id, { command: "getSelectedText" }),
|
selection: await browser.tabs.sendMessage(tabs[0].id, { command: "getSelectedText" }),
|
||||||
|
|
@ -85,7 +85,7 @@ export class mzta_Menus {
|
||||||
|
|
||||||
curr_menu_entry.act = async () => {
|
curr_menu_entry.act = async () => {
|
||||||
const tabs = await browser.tabs.query({ active: true, currentWindow: true });
|
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
|
//check if a selection is needed
|
||||||
if(String(curr_prompt.need_selected) == "1" && (msg_text.selection==='')){
|
if(String(curr_prompt.need_selected) == "1" && (msg_text.selection==='')){
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue