mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-02-04 07:13:25 +08:00
chore: Use logger
This commit is contained in:
parent
b36e5d0d3b
commit
6792bb94b7
@ -339,8 +339,7 @@ const contentLoaded = function () {
|
|||||||
if (mermaid.startOnLoad) {
|
if (mermaid.startOnLoad) {
|
||||||
const { startOnLoad } = mermaidAPI.getConfig();
|
const { startOnLoad } = mermaidAPI.getConfig();
|
||||||
if (startOnLoad) {
|
if (startOnLoad) {
|
||||||
// eslint-disable-next-line no-console
|
mermaid.init().catch((err) => log.error('Mermaid failed to initialize', err));
|
||||||
mermaid.init().catch((err) => console.error('Mermaid failed to initialize', err));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user