Trying to use storage.get() in a content script results in Access to storage is not allowed from this context.
Here's my code:
// content.ts
const storage = new Storage({ area: "session" })
const init = async () => {
value = await storage.get("key")
}
init()
I can't call storage.get() outside an async function so am I doing something wrong?