Open Sidebar/Sidepanel in Firefox from Toolbar Icon #1225
-
I need help figuring out how to open the sidebar/sidepanel in Firefox when interacting with the extension icon in the toolbar. Currently, I can open the sidebar when I first run the command, but I want it to open every time I click the extension icon in the Firefox toolbar. I managed to achieve this in Chrome, but for Firefox, I believe there’s something else I need to do beyond configuring the background.ts file. Can anyone guide me on how to implement this functionality in Firefox? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
browser.browserAction.onClicked.addListener(() => {
browser.sidebarAction.toggle();
}); note: browserAction is deprecated in MV3 |
Beta Was this translation helpful? Give feedback.
note: browserAction is deprecated in MV3