mztaDoCustomText is now always a string. see #522

This commit is contained in:
mic 2025-10-03 23:33:50 +02:00
parent 3fccf39852
commit 8f19cea3cd
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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) +`";