do not get tagslist if permission not given. see #275

This commit is contained in:
mic 2025-03-03 20:52:58 +01:00
parent a5f4526a6d
commit a1f1f84aee

View file

@ -110,7 +110,12 @@ export class mzta_Menus {
let chatgpt_lang = taPromptUtils.getDefaultLang(curr_prompt);
let fullPrompt = '';
let tags_full_list = await getTagsList();
let tags_full_list = '';
// without the tags related permissions, we can't get the tags list
if(await browser.permissions.contains({permissions: ['messagesTagsList']})){
await getTagsList();
}
let curr_messages = null;
switch(tabs[0].type){