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