filtering placeholders base on add_tags option and not tb permissions
This commit is contained in:
parent
5b0685c8c7
commit
b0157f4c90
1 changed files with 2 additions and 1 deletions
|
|
@ -162,7 +162,8 @@ export async function getPlaceholders(onlyEnabled = false){
|
|||
output.sort((a, b) => a.id.localeCompare(b.id));
|
||||
}
|
||||
// console.log('>>>>>>>>>>>> getPlaceholders output: ' + JSON.stringify(output));
|
||||
if (!await browser.permissions.contains({ permissions: ["messagesTagsList"] })) {
|
||||
let prefs = await browser.storage.local.get({ add_tags: false });
|
||||
if (prefs.add_tags) {
|
||||
output = output.filter(obj => obj.id !== 'tags_full_list' && obj.id !== 'tags_current_email');
|
||||
}
|
||||
return output;
|
||||
|
|
|
|||
Loading…
Reference in a new issue