1
0
mirror of https://github.com/XFox111/TabsAsideExtension.git synced 2026-04-22 07:58:01 +03:00

fix: close firefox sidebar when list location changes

This commit is contained in:
2025-05-08 10:05:53 +03:00
parent dfcafae2b1
commit 0ff1d63cde
@@ -27,6 +27,9 @@ export default function GeneralSection(): React.ReactElement
if (e.optionValue === "popup" && contextAction !== "open") if (e.optionValue === "popup" && contextAction !== "open")
setContextAction("open"); setContextAction("open");
if (import.meta.env.FIREFOX && e.optionValue !== "sidebar")
browser.sidebarAction.close();
setListLocation(e.optionValue as ListLocationType); setListLocation(e.optionValue as ListLocationType);
}; };