mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-29 04:09:43 +02:00
New docs and updated dist
This commit is contained in:
@@ -86,7 +86,7 @@ Logger.levels = {
|
||||
warn: 3,
|
||||
error: 4,
|
||||
fatal: 5,
|
||||
default:2
|
||||
default:1
|
||||
};
|
||||
|
||||
exports.create = function(type, options) {
|
||||
|
@@ -230,7 +230,6 @@ exports.contentLoaded = function(){
|
||||
}
|
||||
}
|
||||
else {
|
||||
mermaidAPI.initialize({startOnLoad:global.mermaid.startOnLoad});
|
||||
// No config found, do check API config
|
||||
config = mermaidAPI.getConfig();
|
||||
if(config.startOnLoad){
|
||||
@@ -238,15 +237,17 @@ exports.contentLoaded = function(){
|
||||
}
|
||||
}
|
||||
}else{
|
||||
if(typeof global.mermaid === 'undefined' ){
|
||||
//if(typeof global.mermaid === 'undefined' ){
|
||||
if(typeof global.mermaid.startOnLoad === 'undefined' ){
|
||||
log.debug('In start, no config');
|
||||
config = mermaidAPI.getConfig();
|
||||
if(config.startOnLoad){
|
||||
global.mermaid.init();
|
||||
}
|
||||
//}else{
|
||||
//
|
||||
//}
|
||||
|
||||
}
|
||||
log.debug('In start, no config');
|
||||
config = mermaidAPI.getConfig();
|
||||
if(config.startOnLoad){
|
||||
global.mermaid.init();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user