About ReactJS in iframe.html
Using iframe.html of Zendesk is it possible ReactJS can be integrate or will be use in iframe.html? I tried to use iframe.html only and it is working without react. But after I installed react, npm start my app is not working on the apps sidebar. I want to achieve is to run reactjs application in iframe.html.
-
Hey Jesse,
Try adjusting your location parameter like the example below and let me know if you have any issues:
"location": { "support": { "nav_bar": { "url": "assets/iframe.html" } } },
-
Any luck with this? I was able to get a React app working in the top bar but once I tried to move it to the nav bar on the side I get a "Tried to show an iframe with a location that is neither absolute nor an asset" error.
-
Hey Jesse,
Can you show me the manifest file for the app in the sidebar? I've encountered this error a couple times and I don't think is react related.
-
{"name":"","author":{"name":"","email":"","url":""},"defaultLocale":"en","private":true,"location":{"support":{"nav_bar":"assets/index.html"}},"version":"1.0","frameworkVersion":"2.0"}
-
That was it! Thanks a lot.
Please sign in to leave a comment.
5 Comments