do not get tagslist if permission not given. see #275
This commit is contained in:
parent
a5f4526a6d
commit
a1f1f84aee
1 changed files with 6 additions and 1 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Reference in a new issue