Pass data from Content.ts to Options Page via Storage API
Unable to pass user data from
Current Behavior
- Data is collected from website in
- Attempting to store data using Chrome Storage API
- When accessing the data in options page, it returns undefined
Expected Behavior
Data collected in
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
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"
