yosevu / react-content-script

An example project to build Chrome extensions using React and TypeScript. Ideal for developers looking to create efficient and modern Chrome extensions with a focus on a clean development workflow using Vite and crxjs.
202 stars 56 forks source link

Ejecting into iframe #3

Closed amosbastian closed 2 years ago

amosbastian commented 2 years ago

Is it somehow possible to inject the React app (with index.html) into an iframe? I'm asking this because I'm using Chakra UI and using your method it injects Chakra's styling into the html and body of the actual webpage, which affects its styling 😞 I've tried doing what the answers found here suggest, but with that it renders an iframe 3 times for some reason (but other than that it seems to work).