just out of curiosity, where does the storage live?

why does it work? i cannot find any cookie or localstorage where the keys i setup from plasmo are, it's pretty cool but i dont understand where that data is
2 Replies
Sam
Sam•8mo ago
The storage is in the service worker. But I don't think you can view it VIA the dev tools. For me I've used the dev tools with the service work and createad a little utility like this.
['storageKey'].forEach(item => chrome.storage.local.get(item).then(i => console.log(i)))
['storageKey'].forEach(item => chrome.storage.local.get(item).then(i => console.log(i)))
The array is the key of the storage value. This logs the contents. It's not perfect but it works.
aiktb
aiktb•8mo ago
chrome.storage is not affiliated with localStroage or cookies, you can't view him in the Application panel of devtools, using console.log in the options/popup page is a workaround.
Want results from more Discord servers?
Add your server