Skip to content

Commit

Permalink
update markmap
Browse files Browse the repository at this point in the history
  • Loading branch information
obgnail committed Sep 9, 2023
1 parent b6051fb commit 7fe4611
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/markmap/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
})
}
}
Expand Down

0 comments on commit 7fe4611

Please sign in to comment.