Side panel and CSUI interactions

I'm trying to trigger open/close the side panel from content script UI where I have a button rendered on top of the webpage. Clicking on it means to toggle the side panel. I tried calling chrome.sidePanel.open() from my content script but it didn't work. Then I tried to do it via sending it to background script and calling chrome.sidePanel.open() from there - didn't work as well. I assume there was some misconfiguration or an error that I overlooked? It was throwing an error:
Failed to open side panel: Error: `sidePanel.open()` may only be called in response to a user gesture.
Failed to open side panel: Error: `sidePanel.open()` may only be called in response to a user gesture.
But I managed to fix something that stopped this error from appearing ever again - still didn't work. Any thoughts?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server