mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-13 19:19:37 +02:00
Allow overriding sequence diagram configuration (SVG properties) - handling of non existent configuration
This commit is contained in:
@@ -22,7 +22,7 @@ var init = function (sequenceConfig) {
|
||||
var arr = document.querySelectorAll('.mermaid');
|
||||
var i;
|
||||
|
||||
if (sequenceConfig) {
|
||||
if (sequenceConfig !== 'undefined') {
|
||||
seq.setConf(JSON.parse(sequenceConfig));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user