diff options
author | Jacob Schatz <jschatz@gitlab.com> | 2018-01-18 14:40:06 +0300 |
---|---|---|
committer | Luke Bennett <lbennett@gitlab.com> | 2018-01-18 17:54:05 +0300 |
commit | 55c27f02a25f97bbe207abb7c19007c6e554b2c5 (patch) | |
tree | 50d7368f8664dfac26f6c3df956603b6030430f2 /app | |
parent | 818eab8051bedf244404c85da21e5ec2af89adfd (diff) |
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
(cherry picked from commit 50a649530a53a04d2044f9e4c5502586a7ed0c59)
b1261ad9 Fix Mermaid drawings not loading on some browsers
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/render_mermaid.js | 6 |
1 files changed, 5 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', }); |