Allow overriding sequence diagram configuration (SVG properties) - handling of non existent configuration

This commit is contained in:
knsv
2015-01-14 19:10:39 +01:00
parent 8e050d4223
commit 48500652b3
7 changed files with 1256 additions and 101 deletions

View File

@@ -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));
}