-
I built an extension using Manifest V3 and compiled it to chrome which works fine. However, I compiled it to Firefox as well using Is there a work around or is this a question of time when we'll get |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Can you post the error you're seeing? - the chrome object is actually available in firefox for compatibility, but for some API it's not available and you might need to use something like webextpolyfill: https://github.com/mozilla/webextension-polyfill I don't really like that package since it throws top-level error at import, making it not suitable to write reusable code for all runtime such as sandbox pages or mainworld On the other hand - try out the firefox-mv3 target and see if it works ;d... Also I'm curious - which chrome API is firefox complaining about? |
Beta Was this translation helpful? Give feedback.
Can you post the error you're seeing? - the chrome object is actually available in firefox for compatibility, but for some API it's not available and you might need to use something like webextpolyfill: https://github.com/mozilla/webextension-polyfill
I don't really like that package since it throws top-level error at import, making it not suitable to write reusable code for all runtime such as sandbox pages or mainworld
On the other hand - try out the firefox-mv3 target and see if it works ;d...
Also I'm curious - which chrome API is firefox complaining about?