fix(#3406, #3394): Remove init & initThrowsErrors

New run function added as replacement.
This commit is contained in:
Sidharth Vinod
2023-02-19 16:10:08 +05:30
parent 57fd3e586a
commit 4ea7294eeb
11 changed files with 215 additions and 126 deletions

View File

@@ -17,7 +17,7 @@ example-diagram
await mermaid.registerExternalDiagrams([exampleDiagram]);
await mermaid.initialize({ logLevel: 0 });
await mermaid.initThrowsErrors();
await mermaid.run();
if (window.Cypress) {
window.rendered = true;
}