Fix style issue of mermaid.js and mermaidAPI.js

This commit is contained in:
Tyler Long
2017-04-11 23:31:59 +08:00
parent f136a7fd8d
commit e91229f69f
2 changed files with 11 additions and 11 deletions

View File

@@ -64,12 +64,12 @@ var init = function () {
}
nodes = nodes === undefined ? document.querySelectorAll('.mermaid')
: typeof nodes === 'string' ? document.querySelectorAll(nodes)
: nodes instanceof Node ? [nodes]
: nodes instanceof window.Node ? [nodes]
: nodes // Last case - sequence config was passed pick next
var i
if (typeof mermaid_config !== 'undefined') {
if (typeof global.mermaid_config !== 'undefined') {
mermaidAPI.initialize(global.mermaid_config)
}
log.debug('Start On Load before: ' + global.mermaid.startOnLoad)
@@ -204,7 +204,7 @@ exports.parseError = global.mermaid.parseError
exports.contentLoaded = function () {
var config
// Check state of start config mermaid namespace
if (typeof mermaid_config !== 'undefined') {
if (typeof global.mermaid_config !== 'undefined') {
if (equals(false, global.mermaid_config.htmlLabels)) {
global.mermaid.htmlLabels = false
}