Does Plasmo use Chrome API behind the scene?

I'm asking because I would like to build my Plasmo extension for firefox and safari as well. When I use PlasmoStorage API, does it behind the scenes use chrome API? I saw in the official Plasmo docs, that authenticating with Firebase should be done with chrome.identity. How is it possible to do when in Firefox for example? Thanks in advance
2 Replies
tlentz
tlentz•14mo ago
Hi, I was just looking at the storage api docs before I joined the discord. The storage api would work cross browser, you can see the source code here https://github.com/PlasmoHQ/storage/blob/main/src/index.ts#L78 it will use
globalThis.browser?.storage || globalThis.chrome?.storage
globalThis.browser?.storage || globalThis.chrome?.storage
GitHub
storage/src/index.ts at main · PlasmoHQ/storage
💾 Safely store data and share it across your extension - PlasmoHQ/storage
sirhaveri
sirhaveriOP•14mo ago
Thanks!
Want results from more Discord servers?
Add your server