From 38cf4ee0dede6b373c102b58dfaa87b9b753d800 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Sat, 23 Mar 2024 21:42:10 +0800 Subject: [PATCH] :bug: Fix: mermaid init error --- assets/js/theme.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/theme.js b/assets/js/theme.js index 62dfc9d3..9a816245 100644 --- a/assets/js/theme.js +++ b/assets/js/theme.js @@ -551,7 +551,7 @@ class FixIt { } initMermaid() { - if (!window.mermaid) { + if (!window.mermaid?.initialize) { return; } const themes = window.mermaid.themes ?? ['default', 'dark'];