Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Pass data from Content.ts to Options Page via Storage API - 🧩 Plasmo Developers
�PD
🧩 Plasmo Developers
•
15mo ago
•
21 replies
pedro
Pass data from Content.ts to Options Page via Storage API
Unable to pass user data from
content.ts
content.ts
to the options page using Storage API
. Data is being set but returns undefined when accessed
.
Current Behavior
- Data is collected from website in
content.ts
content.ts
- Attempting to store data using Chrome Storage API
- When accessing the data in options page
, it returns undefined
Expected Behavior
Data collected in
content.ts
content.ts
should be
:
1
. Successfully stored using Storage API
2
. Accessible in the options page
Technical Details
- Using Storage API
- Written in TypeScript
- Data is collected from website DOM
More about it
As you can see on the images
, I
'm setting the data on the
initialize.ts
initialize.ts
and using it in a Options Page called
"login
"
🧩 Plasmo Developers
Join
2,796
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
How to pass data in contents file?
�PD
🧩 Plasmo Developers / 👟framework
3y ago
How to pass data in contents file?
�PD
🧩 Plasmo Developers / 👟framework
3y ago
Call Storage API with callback?
�PD
🧩 Plasmo Developers / 👟framework
3y ago
Best way to store JSON with storage API
�PD
🧩 Plasmo Developers / 👟framework
4y ago