Can't access other elements outside the plasmo-csui shadow root
I'm trying to get the unique url of a tweet container when i click on the button I'm rendering. I have already specified where i want my button to be attached in the DOM.
Ideally, i treid listening to the
currentTarget
of the click event and try to get the closest element with the attibut I have set. But it always return null. I've also tried storing the lins in localStorage. But it seems as though my approach was still flawed.
This is an excerpt of what my CSUI code looks like.
Any help on how to get the exact link that corresponds when i click on a specific button would be highly appreciated.0 Replies