summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Schatz <jschatz@gitlab.com>2018-01-18 11:40:06 +0000
committerJacob Schatz <jschatz@gitlab.com>2018-01-18 11:40:06 +0000
commit50a649530a53a04d2044f9e4c5502586a7ed0c59 (patch)
tree81a4f1210de09c2fcb5048200198927fbd38f832
parent8e9c073a146f655cea2fd13f259bd68dc2c37259 (diff)
parentb1261ad942946102da28a5df1247208d2bfb57e7 (diff)
downloadgitlab-ce-50a649530a53a04d2044f9e4c5502586a7ed0c59.tar.gz
Merge branch 'sh-fix-mermaid-start-on-load-typo' into 'master'
Fix Mermaid drawings not loading on some browsers Closes #42052 See merge request gitlab-org/gitlab-ce!16537
-rw-r--r--app/assets/javascripts/render_mermaid.js6
-rw-r--r--changelogs/unreleased/sh-fix-mermaid-start-on-load-typo.yml5
2 files changed, 10 insertions, 1 deletions
diff --git a/app/assets/javascripts/render_mermaid.js b/app/assets/javascripts/render_mermaid.js
index b7cde6fb092..31c7a772cf4 100644
--- a/app/assets/javascripts/render_mermaid.js
+++ b/app/assets/javascripts/render_mermaid.js
@@ -19,7 +19,11 @@ export default function renderMermaid($els) {
import(/* webpackChunkName: 'mermaid' */ 'blackst0ne-mermaid').then((mermaid) => {
mermaid.initialize({
- loadOnStart: false,
+ // mermaid core options
+ mermaid: {
+ startOnLoad: false,
+ },
+ // mermaidAPI options
theme: 'neutral',
});
diff --git a/changelogs/unreleased/sh-fix-mermaid-start-on-load-typo.yml b/changelogs/unreleased/sh-fix-mermaid-start-on-load-typo.yml
new file mode 100644
index 00000000000..a2d4ade8e54
--- /dev/null
+++ b/changelogs/unreleased/sh-fix-mermaid-start-on-load-typo.yml
@@ -0,0 +1,5 @@
+---
+title: Fix Mermaid drawings not loading on some browsers
+merge_request:
+author:
+type: fixed