parent
76360542f6
commit
1ec6a610e6
1 changed files with 14 additions and 0 deletions
|
|
@ -60,6 +60,20 @@ function extractEmail(text) {
|
|||
return match ? match[0] : '';
|
||||
}
|
||||
|
||||
export async function reloadBody(tabId){
|
||||
let composeDetails = await messenger.compose.getComposeDetails(tabId);
|
||||
let originalHtmlBody = composeDetails.body + " ";
|
||||
await messenger.compose.setComposeDetails(tabId, {body: originalHtmlBody});
|
||||
}
|
||||
|
||||
export async function getOriginalBody(tabId){
|
||||
let composeDetails = await messenger.compose.getComposeDetails(tabId);
|
||||
return composeDetails.body;
|
||||
}
|
||||
|
||||
export async function setBody(tabId, fullHtmlBody){
|
||||
await messenger.compose.setComposeDetails(tabId, {body: fullHtmlBody});
|
||||
}
|
||||
|
||||
export async function replaceBody(tabId, text){
|
||||
let composeDetails = await messenger.compose.getComposeDetails(tabId);
|
||||
|
|
|
|||
Loading…
Reference in a new issue