getSpamFilterPrompt method added. see #231
This commit is contained in:
parent
0aa8675e48
commit
fda58db254
1 changed files with 4 additions and 0 deletions
|
|
@ -373,3 +373,7 @@ export async function setSpecialPrompts(prompts) {
|
||||||
// console.log(">>>>>>>>>>>> setSpecialPrompts prompts: " + JSON.stringify(prompts));
|
// console.log(">>>>>>>>>>>> setSpecialPrompts prompts: " + JSON.stringify(prompts));
|
||||||
await browser.storage.local.set({_special_prompts: prompts});
|
await browser.storage.local.set({_special_prompts: prompts});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export async function getSpamFilterPrompt(){
|
||||||
|
return (await getSpecialPrompts()).find(prompt => prompt.id == 'prompt_spamfilter');
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue