reloading the needed prefs when reloading menus
This commit is contained in:
parent
83bcf14033
commit
1803020a6c
1 changed files with 2 additions and 1 deletions
|
|
@ -211,7 +211,8 @@ messenger.runtime.onMessage.addListener((message, sender, sendResponse) => {
|
||||||
break;
|
break;
|
||||||
case 'reload_menus':
|
case 'reload_menus':
|
||||||
async function _reload_menus() {
|
async function _reload_menus() {
|
||||||
menus.reload(prefs_init.add_tags && (prefs_init.connection_type !== "chatgpt_web"));
|
let prefs_reload = await browser.storage.sync.get({add_tags: true, connection_type: 'chatgpt_web'});
|
||||||
|
menus.reload(prefs_reload.add_tags && (prefs_reload.connection_type !== "chatgpt_web"));
|
||||||
taLog.log("Reloading menus");
|
taLog.log("Reloading menus");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue