🧩 Plasmo Developers�PD
🧩 Plasmo Developers13mo ago
21 replies
pedro

Pass data from Content.ts to Options Page via Storage API

Unable to pass user data from 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
- 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 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 and using it in a Options Page called "login"
CleanShot_2025-01-03_at_01.21.042x.png
CleanShot_2025-01-03_at_01.21.502x.png
Was this page helpful?