From 1803020a6cca5ff907d1794948c49af7eb2a4e9c Mon Sep 17 00:00:00 2001 From: mic Date: Thu, 2 Jan 2025 23:13:33 +0100 Subject: [PATCH] reloading the needed prefs when reloading menus --- mzta-background.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mzta-background.js b/mzta-background.js index 343d992a..d48a3d22 100644 --- a/mzta-background.js +++ b/mzta-background.js @@ -211,7 +211,8 @@ messenger.runtime.onMessage.addListener((message, sender, sendResponse) => { break; case '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"); return true; }