No subject line in the message reply. Fixes #17
This commit is contained in:
parent
1e8fc2a1e9
commit
8af1cc5809
1 changed files with 9 additions and 2 deletions
|
|
@ -42,8 +42,15 @@ const addAction = (curr_prompt, promptsContainer) => {
|
||||||
|
|
||||||
var fullPrompt = fullPrompt = curr_prompt.text + (curr_prompt.need_signature ? " " + await getDefaultSignature():"") + " " + browser.i18n.getMessage("prompt_lang") + chatgpt_lang + ". \"" + msg_text.text + "\" ";
|
var fullPrompt = fullPrompt = curr_prompt.text + (curr_prompt.need_signature ? " " + await getDefaultSignature():"") + " " + browser.i18n.getMessage("prompt_lang") + chatgpt_lang + ". \"" + msg_text.text + "\" ";
|
||||||
|
|
||||||
if(curr_prompt.id == 'prompt_translate_this'){
|
switch(curr_prompt.id){
|
||||||
fullPrompt = curr_prompt.text + chatgpt_lang + ". \"" + msg_text.text + "\" ";
|
case 'prompt_translate_this':
|
||||||
|
fullPrompt = curr_prompt.text + chatgpt_lang + ". \"" + msg_text.text + "\" ";
|
||||||
|
break;
|
||||||
|
case 'prompt_reply':
|
||||||
|
fullPrompt += "Do not add the subject line to the response."
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
const tabs = await browser.tabs.query({ active: true, currentWindow: true });
|
const tabs = await browser.tabs.query({ active: true, currentWindow: true });
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue