Opening a Tab Page from a Content Script UI

Hi everyone, I'm working on a command palette. It should open a new tab for some actions from the palette. The problem is that chrome.tabs.create is undefined in content.tsx. It works in popup.tsx. Do you happen to know how I could open a new tab from the content.tsx? Thanks, Julien
3 Replies
lab
lab•2y ago
Hi Julien, you would use the messaging API to tell BGSW to open it for you from CS.
j5004
j5004OP•2y ago
Thanks a lot @louis !
YAGPDB.xyz
YAGPDB.xyz•2y ago
Gave +1 Rep to @louis
Want results from more Discord servers?
Add your server