How do I open the preview panel?

[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 preview toolbar 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.

[Samuel Corsi-House]

[Samuel Corsi-House]

@vince-fugnitto i mean like this

[Samuel Corsi-House]

nvm got it

[Samuel Corsi-House]

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?

[Samuel Corsi-House]

[Samuel Corsi-House]

@vince-fugnitto sure but it is not just one thing. Even stuff like google won’t load.

[Samuel Corsi-House]

[Samuel Corsi-House]

And

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’.”

[Samuel Corsi-House]

ok

[Samuel Corsi-House]

I’ll look

[Samuel Corsi-House]

@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.

[Samuel Corsi-House]

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