Not grokking message passing

I'm trying to click a button in a popup and get the current url of the active tab. I can get a content.ts that does this onload, but I'm unsure how to use plasmo to do this onclick of a popup button. I've not slept so I've probably missed something but putting "relay" in my content.ts and passing "sendviarelay" didn't work.
2 Replies
Arcane
Arcane•16mo ago
@kyle has reached level 1. GG!
lab
lab•16mo ago
you can simply use a bgsw for this with the action API as well, no need to use a cs
Want results from more Discord servers?
Add your server