getSpamFilterPrompt method added. see #231
This commit is contained in:
parent
0aa8675e48
commit
fda58db254
1 changed files with 4 additions and 0 deletions
|
|
@ -372,4 +372,8 @@ export async function getSpecialPrompts(){
|
|||
export async function setSpecialPrompts(prompts) {
|
||||
// console.log(">>>>>>>>>>>> setSpecialPrompts prompts: " + JSON.stringify(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