This commit is contained in:
parent
00a605e794
commit
5070494ed0
2 changed files with 14 additions and 0 deletions
|
|
@ -1099,6 +1099,10 @@
|
||||||
"message": "Default language as defined in ThunderAI options.",
|
"message": "Default language as defined in ThunderAI options.",
|
||||||
"description": ""
|
"description": ""
|
||||||
},
|
},
|
||||||
|
"empty": {
|
||||||
|
"message": "This placeholder doesn't add any text, but it prevents the email body from being automatically appended at the end of the prompt.",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
"prefs_OptionText_spamfilter": {
|
"prefs_OptionText_spamfilter": {
|
||||||
"message": "Automatic Spam Filter",
|
"message": "Automatic Spam Filter",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
|
|
||||||
|
|
@ -175,6 +175,13 @@ const defaultPlaceholders = [
|
||||||
type: 0,
|
type: 0,
|
||||||
is_default: "1",
|
is_default: "1",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 'empty',
|
||||||
|
name: "__MSG_placeholder_empty__",
|
||||||
|
default_value: "",
|
||||||
|
type: 0,
|
||||||
|
is_default: "1",
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -358,6 +365,9 @@ export const placeholdersUtils = {
|
||||||
let prefs_def_lang = await browser.storage.sync.get({default_chatgpt_lang: ''});
|
let prefs_def_lang = await browser.storage.sync.get({default_chatgpt_lang: ''});
|
||||||
finalSubs['thunderai_def_lang'] = placeholdersUtils.failSafePlaceholders(prefs_def_lang.default_chatgpt_lang);
|
finalSubs['thunderai_def_lang'] = placeholdersUtils.failSafePlaceholders(prefs_def_lang.default_chatgpt_lang);
|
||||||
break;
|
break;
|
||||||
|
case 'empty':
|
||||||
|
finalSubs['empty'] = '';
|
||||||
|
break;
|
||||||
default: // TODO Manage custom placeholders https://github.com/micz/ThunderAI/issues/156
|
default: // TODO Manage custom placeholders https://github.com/micz/ThunderAI/issues/156
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue