From 7fe46118580e168278c401369b971c609c752fb8 Mon Sep 17 00:00:00 2001 From: obgnail Date: Sat, 9 Sep 2023 21:05:20 +0800 Subject: [PATCH] update markmap --- plugin/markmap/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/markmap/index.js b/plugin/markmap/index.js index 0e7ff26b..0f466413 100644 --- a/plugin/markmap/index.js +++ b/plugin/markmap/index.js @@ -310,7 +310,7 @@ class markmapPlugin extends global._basePlugin { if (this.config.USE_BUTTON) { document.querySelector(".plugin-markmap-item").addEventListener("click", () => { - (this.entities.modal.style.display === "") ? this.drawToc() : this.close(); + (this.entities.modal.style.display === "") ? this.drawToc() : this.onButtonClick("close"); }) } }