mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-11 19:39:43 +02:00
Fixed build issue
This commit is contained in:
@@ -49,7 +49,10 @@ var init = function () {
|
||||
|
||||
console.log('Found ',nodes.length,' nodes');
|
||||
console.log('Hooo hooo');
|
||||
mermaidAPI.initialize(mermaid_config);
|
||||
if(typeof mermaid_config !== 'undefined'){
|
||||
mermaidAPI.initialize(mermaid_config);
|
||||
}
|
||||
|
||||
var insertSvg = function(svgCode){
|
||||
element.innerHTML = svgCode;
|
||||
};
|
||||
|
Reference in New Issue
Block a user