[original thread by Samuel Corsi-House]
If a file supports previews (ex: ‘markdown’), you can open it a number of ways:
open the file’s sources and click the
open previewtoolbar item
right-click the file in the explorer and select
Open With > Preview
This depends however on what you include as dependencies/extensions in your application.
@vince-fugnitto i mean like this
nvm got it
Though it never loads the preview for me. It is always a white screen. Is there a way to fix this?
@xenfo can you share what you’re attempting to preview, perhaps a screenshot?
@vince-fugnitto sure but it is not just one thing. Even stuff like google won’t load.
I believe the use-case you’re trying to achieve might not work due to security reasons.
Please see the relevant discussions here: https://github.com/eclipse-theia/theia/issues/3169
There is also an error reported which might be useful to you:
“Refused to display ‘https://www.google.com/’ in a frame because it set ‘X-Frame-Options’ to ‘sameorigin’.”
@vince-fugnitto It says it should work now. Any idea why it wouldn’t?
I think based on the error message it is due to increased security, the comment on the issue was likely written before security updates. If I’m mistaken perhaps others can chime in.
Oh that’s unfortunate.
many websites does not allow embedding because of security issues, so it is expected
main use case for mini-browser it is to preview changes to a app or some html files on which you are working on