From 5978791599aac6a69ac591daa6ee90199286e84d Mon Sep 17 00:00:00 2001 From: Jannik Buhr <17450586+jmbuhr@users.noreply.github.com> Date: Sun, 31 Jul 2022 23:45:18 +0200 Subject: [PATCH] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e92ac28..9a49bc5 100644 --- a/README.md +++ b/README.md @@ -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.