Get tab id in side panel for both Chrome and Firefox? #1030
Unanswered
maybebansky
asked this question in
Q&A
Replies: 1 comment
-
|
Simple, export const getBrowser = browser || chrome; |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I've been getting the tab id by running this code in the side panel when it's loaded:
This works for Chrome but I also need to support Firefox. This works on Firefox:
To support both Chrome and Firefox AI suggested I create this pollyfil, which I think would work. But is there a solution built into Plasmo?
Beta Was this translation helpful? Give feedback.
All reactions