Closed arlemi closed 6 years ago
@KSlachta ☝️
It seems that however it is handled for the demo does not work with the latest version of chrome
I've demoed Watson VR a few times and wanted to show the raw JSON, landing on a blank page is not a good experience. As the JSON is already loaded on the page can it be shown on an overlay for example? Rather than opening a new page.
We have a JSON component that can be used for this. https://watson-developer-cloud.github.io/react-components/#JsonLinkInlineExamples
I tried to change it but watson-react-component is not in this project, though I'm seeing some elements like JsonLink that have been added one-by-one. Importing the lib with the css breaks the UI so I'll leave it to someone who knows the project to fix it.
:thinking:
Thanks for trying @arlemi, I think the dev is on vacation now.
The JSON button no longer works in Chrome because it no longer allows data URLs in the top frame as of update 60. Look here for more information.
The JsonLink component in the watson-react-components package is probably broken on Chrome as well since it's using the same method to display the JSON window.
Fixed
When clicking on the JSON button to see the raw json that is returned by the service, it opens a blank page and doesn't show anything.
When opening the browser console, I'm seeing the following error message:
I'm running Chrome Version 61.0.3163.100 (Official Build) (64-bit)