You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TL;DR is that you'll lose any external references passed to func. If your function is simple, you could just use the regular storage APIs.
If you don't need access to other Javascript running in the page and don't really want to use func, it'd probably be easier to create a content.ts file that just listens for a message from the background script (triggering whatever code you want to run), and then have the background script send a message when the browser action is clicked.
What happened?
Can't use @plasmohq/storage in executeScript function, get '_storage is not defined' error
Version
Latest
What OS are you seeing the problem on?
MacOSX
What browsers are you seeing the problem on?
Chrome
Relevant log output
'_storage is not defined'
(OPTIONAL) Contribution
Code of Conduct
The text was updated successfully, but these errors were encountered: