How do I get the data from IndexedDB of my extension?

In extension popup, I've written some data using IndexedDB and I want to access to it when somebody visits a URL. Since the context of extension popup and a webpage is different, I can't access the data of the extension from a webpage. Apparently, there's messaging to send messages between these isolated environments: https://docs.plasmo.com/framework/messaging I've checked it a little bit but I'm a little bit confused. I guess I have to write a backgorund service worker, set up a Message Flow endpoint and access to the data in IDB with it inside a website. Am I correct?
1 Reply
Eray Erdin
Eray ErdinOP•2mo ago
Yep, my instincts were right. I set up message flow.

Did you find this page helpful?