diff --git a/js/mzta-chatgpt.js b/js/mzta-chatgpt.js index 60e18f05..51ecc136 100644 --- a/js/mzta-chatgpt.js +++ b/js/mzta-chatgpt.js @@ -816,7 +816,7 @@ function run(checkTab = null) { }else{ addCustomDiv(current_action,current_tabId,current_mailMessageId); (async () => { - if(mztaDoCustomText === 1){ + if(mztaDoCustomText === "1"){ showCustomTextField(); } else { await doProceed(current_message); diff --git a/mzta-background.js b/mzta-background.js index ae7cb1a3..66bf8ed9 100644 --- a/mzta-background.js +++ b/mzta-background.js @@ -452,7 +452,7 @@ async function openChatGPT(promptText, action, curr_tabId, prompt_name = '', do_ let mztaStatusPageDesc="`+ browser.i18n.getMessage("prefs_status_page") +`"; let mztaForceCompletionDesc="`+ browser.i18n.getMessage("chatgpt_force_completion") +`"; let mztaForceCompletionTitle="`+ browser.i18n.getMessage("chatgpt_force_completion_title") +`"; - let mztaDoCustomText=`+ do_custom_text +`; + let mztaDoCustomText="`+ do_custom_text +`"; let mztaPromptName="[`+ i18nConditionalGet(prompt_name) +`]"; let mztaPhDefVal="`+(prefs.placeholders_use_default_value?'1':'0')+`"; let mztaGPTModel="`+ (_custom_gpt_set ? '' : _gpt_model) +`";