Skip to content

Commit

Permalink
fix: mermaidConfig is not defined error
Browse files Browse the repository at this point in the history
  • Loading branch information
reuixiy committed Jun 24, 2020
1 parent 29bd11e commit f0b87b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/dark-mode.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function changeMode() {

// Mermaid
// https://github.com/reuixiy/hugo-theme-meme/issues/205
if (mermaidConfig) {
if (typeof mermaidConfig !== 'undefined') {
const mermaids = document.querySelectorAll('.mermaid');

mermaids.forEach(e => {
Expand Down

0 comments on commit f0b87b2

Please sign in to comment.