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 Jan 21, 2025
1 parent eb1bc83 commit f4825dc
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 @@ -43,6 +43,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 f4825dc

Please sign in to comment.