mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-11 10:09:39 +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') {
|
||||
// Check if property startOnLoad is set
|
||||
if (equals(true, mermaid_config.startOnLoad)) {
|
||||
global.mermaid.init(mermaid.sequenceConfig);
|
||||
global.mermaid.init();
|
||||
}
|
||||
}
|
||||
else {
|
||||
// No config found, do autostart in this simple case
|
||||
global.mermaid.init(mermaid.sequenceConfig);
|
||||
global.mermaid.init();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user