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:
@@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user