Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbuhr authored Jul 31, 2022
1 parent 168ee3a commit 5978791
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,16 @@ Usage examples are in `index.qmd`, which you can see rendered locally and served

## Limitations

Molstar viewers for local files are empty when the file is not served by a webserver such as `quarto preview` or GitHub pages.
- No self-contained htmls: Molstar viewers for local files are empty when the file is **not** served by a webserver such as `quarto preview` or GitHub pages.
This means it will not display your molecule when you simply open the rendered html with a browser,
even if you set the html to be self-contained.

The reason for this is the [Same-origin Policy](https://developer.mozilla.org/en-US/docs/Glossary/Same-origin_policy), a security measure in web browsers.
It and similar policies prevent that one document can access resources it is not supposed to access.
For example, an html document you downloaded is not allowed to execute code that reads personal files on your computer.
This also prevents it from loading your molecules from local paths.

- There is a small bug with revealjs presentations: https://github.com/jmbuhr/quarto-molstar/issues/1

## Update Mol* (extension developement)

The js and css files where downloaded from the [molstar web viewer](https://molstar.org/viewer/) in order to be up to date but also self-contained and functional without an internet connection.
Expand Down

0 comments on commit 5978791

Please sign in to comment.