Skip to content

Commit

Permalink
fix: load mermaid script file properly (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcticLampyrid authored Jun 22, 2023
1 parent be49537 commit 1df398c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layout/_plugins/mermaid.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
mermaid.init(undefined, ".mermaid");
};
if (typeof mermaid == 'undefined') {
const src = '<%- url_npm_cdn(`mermaid", "dist/mermaid.min.js`) %>';
const src = '<%- url_npm_cdn("mermaid", "dist/mermaid.min.js") %>';
$.getScript(src, init);
}
// Set PJAX callback function
window.addEventListener('pjax:complete', reload);
</script>
</script>

0 comments on commit 1df398c

Please sign in to comment.