How to use Storage API from root context in Content Script #769
Unanswered
erensertkaya
asked this question in
Q&A
Replies: 1 comment
-
Hey there - the code from the docs is for demonstration purposes. To run async code, you need to wrap it inside an async context:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What happened?
this is the code got it from docs
i got this error in console
Uncaught SyntaxError: await is only valid in async functions and the top level bodies of modules
i changed code into this
console.logs are return null in console
Version
Latest
What OS are you seeing the problem on?
No response
What browsers are you seeing the problem on?
Chromium
Relevant log output
No response
(OPTIONAL) Contribution
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions