🐛 Fix: mermaid init error

This commit is contained in:
Cell
2024-03-23 21:42:10 +08:00
parent 3df577cb0d
commit 38cf4ee0de
+1 -1
View File
@@ -551,7 +551,7 @@ class FixIt {
}
initMermaid() {
if (!window.mermaid) {
if (!window.mermaid?.initialize) {
return;
}
const themes = window.mermaid.themes ?? ['default', 'dark'];