From 04eb0d4651da81f915b3f6069d2e8c5789ef64e6 Mon Sep 17 00:00:00 2001 From: niltor Date: Mon, 1 Apr 2024 16:31:04 +0800 Subject: [PATCH] fix js undefined error --- WebApp/js/markdown.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/WebApp/js/markdown.js b/WebApp/js/markdown.js index c2d4280..425b292 100644 --- a/WebApp/js/markdown.js +++ b/WebApp/js/markdown.js @@ -1,7 +1,6 @@ document.addEventListener('DOMContentLoaded', function () { - // support mermaind - if (mermaid) { + if (typeof mermaid !== 'undefined') { mermaid.initialize({ startOnLoad: true }); }