Widen Mermaid.js import to 10.x (current major version)

This commit is contained in:
squidfunk 2024-05-03 13:47:36 +02:00
parent 5cb3117f50
commit 75d87eaf7e
No known key found for this signature in database
GPG Key ID: 5ED40BC4F9C436DF
4 changed files with 6 additions and 6 deletions

View File

@ -249,7 +249,7 @@
</script>
{% endblock %}
{% block scripts %}
<script src="{{ 'assets/javascripts/bundle.dd8806f2.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.a7c05c9e.min.js' | url }}"></script>
{% for script in config.extra_javascript %}
{{ script | script_tag }}
{% endfor %}

View File

@ -69,7 +69,7 @@ let sequence = 0
*/
function fetchScripts(): Observable<void> {
return typeof mermaid === "undefined" || mermaid instanceof Element
? watchScript("https://unpkg.com/mermaid@10.7.0/dist/mermaid.min.js")
? watchScript("https://unpkg.com/mermaid@10/dist/mermaid.min.js")
: of(undefined)
}