]> BookStack Code Mirror - hacks/commit
refactor(mermaid-viewer): Bind event handlers to class instance
authorAlexander Wilms <redacted>
Thu, 26 Jun 2025 21:42:33 +0000 (23:42 +0200)
committerAlexander Wilms <redacted>
Thu, 26 Jun 2025 21:42:33 +0000 (23:42 +0200)
commit7300a518bd2c8352b2e6f681a9de78ce5a97f823
tree49c529b96f63ceadbcfcfa8c2f725ecf0cc2a3bc
parent2cdfe9f6943527674dda83730d8ad5bf011f2c5f
refactor(mermaid-viewer): Bind event handlers to class instance

This ensures proper addition and removal of event listeners and fixes a memory leak. Also increases the z-index of the notification.
content/mermaid-viewer/head.html