Open brandonmp opened 8 years ago
I'd like to use the inject.js to scrape data from the DOM and pass it back to the background redux store.
inject.js
redux store
Is that possible with the way the app is injected?
So far I have tried importing the store into inject.js and calling dispatch, but that doesn't work.
store
dispatch
When I try to access document from within a React component, it only returns the DOM of the react component, not the page being viewed.
document
You can use message passing to send the data to the store in your background redux store. Here's a pretty cool lib to do that.
I'd like to use the
inject.js
to scrape data from the DOM and pass it back to the backgroundredux store
.Is that possible with the way the app is injected?
So far I have tried importing the
store
intoinject.js
and callingdispatch
, but that doesn't work.When I try to access
document
from within a React component, it only returns the DOM of the react component, not the page being viewed.