Replies: 1 comment
-
Found my answer here regarding |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I forked the repo and added this locally, with a few other minor changes, to get tab-specific side panel messaging working.
I actually am not super sure the above implementation is best, as I'm calling
await
outside of an explicitasync
context. For some reason it works. If someone could explain it to me, that would be helpful.I like the above because it's clean and looks closer to the other context files. But since I don't fully understand its implications, I went with the solution below.
Here, I fetch the tabId separately in the client code and pass it to this constructor. And I expose the methods as a singleton to the rest of my SidePanel javascript runtime.
Which do y'all think is more reasonable?
Beta Was this translation helpful? Give feedback.
All reactions