Skip to content

Commit

Permalink
fix(#194): auto-reload mermaid
Browse files Browse the repository at this point in the history
  • Loading branch information
jannis-baum committed Dec 17, 2024
1 parent 3a1a785 commit 14ef0f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions static/client.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ ws.addEventListener('message', (event) => {
switch (key) {
case 'UPDATE':
document.getElementById('body-content').innerHTML = value;
(async () => {
await mermaid.run({ querySelector: '.mermaid' });
})();
break;
case 'SCROLL':
viv_scrollTo(value);
Expand Down

0 comments on commit 14ef0f7

Please sign in to comment.