mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-24 00:14:10 +02:00
Fix for init not running by default
This commit is contained in:
@@ -222,12 +222,12 @@ exports.contentLoaded = function(){
|
|||||||
if (typeof mermaid_config !== 'undefined') {
|
if (typeof mermaid_config !== 'undefined') {
|
||||||
// Check if property startOnLoad is set
|
// Check if property startOnLoad is set
|
||||||
if (equals(true, mermaid_config.startOnLoad)) {
|
if (equals(true, mermaid_config.startOnLoad)) {
|
||||||
global.mermaid.init(mermaid.sequenceConfig);
|
global.mermaid.init();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// No config found, do autostart in this simple case
|
// No config found, do autostart in this simple case
|
||||||
global.mermaid.init(mermaid.sequenceConfig);
|
global.mermaid.init();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user