mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-22 16:59:48 +02:00
Fix for issue #259
This commit is contained in:
28
dist/mermaidAPI.slim.js
vendored
28
dist/mermaidAPI.slim.js
vendored
@@ -29798,7 +29798,8 @@ var config = {
|
||||
return d.getMonth();
|
||||
}]]
|
||||
},
|
||||
classDiagram: {}
|
||||
classDiagram: {},
|
||||
info: {}
|
||||
};
|
||||
|
||||
Logger.setLogLevel(config.logLevel);
|
||||
@@ -30023,18 +30024,21 @@ var render = function render(id, txt, cb, container) {
|
||||
};
|
||||
|
||||
exports.render = function (id, text, cb, containerElement) {
|
||||
log.info('APA');
|
||||
if (arguments.length === 1) {
|
||||
text = id;
|
||||
id = 'mermaidId0';
|
||||
}
|
||||
|
||||
if (typeof document === 'undefined') {
|
||||
// Todo handle rendering serverside using phantomjs
|
||||
} else {
|
||||
// In browser
|
||||
return render(id, text, cb, containerElement);
|
||||
try {
|
||||
if (arguments.length === 1) {
|
||||
text = id;
|
||||
id = 'mermaidId0';
|
||||
}
|
||||
|
||||
if (typeof document === 'undefined') {
|
||||
// Todo handle rendering serverside using phantomjs
|
||||
} else {
|
||||
// In browser
|
||||
return render(id, text, cb, containerElement);
|
||||
}
|
||||
} catch (e) {
|
||||
log.warn(e);
|
||||
}
|
||||
};
|
||||
|
||||
var setConf = function setConf(cnf) {
|
||||
|
Reference in New Issue
Block a user