Is it possible to specify per browser permissions?

So, the context around this question is that my extension leverages the tabGroups API, which isn't available in Firefox, and doesn't seem likely to be implemented for a very long time, but I would still like to be able to release something for Firefox. I know that I can add logic that only executes code on certain browsers, which is checked at compile-time, but is there anything I can do to have the tabGroups permission (for example) only be requested in compiled manifests targeting a specific browser?
6 Replies
lab
lab17mo ago
you can try using environment variable for this IMO
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
lab
lab17mo ago
I guess we really need to push that plasmo.config.ts feature haha
tbrockman
tbrockman17mo ago
Didn't realize that requesting an invalid permission just resulted in a warning (not an error), I guess if it doesn't break anything at that point that this is fine 🤷‍♂️ thanks @louis!
YAGPDB.xyz
YAGPDB.xyz17mo ago
Gave +1 Rep to @louis
builder
builder8mo ago
really need this
Want results from more Discord servers?
Add your server