Skip to content

Commit

Permalink
fix: undefined loadComments() in homepage (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
h1z3y3 committed Apr 15, 2021
1 parent 29e4726 commit c2d2200
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion assets/js/comments.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
window.addEventListener("DOMContentLoaded", event => {
{{ if .Site.Params.autoLoadComments }}
loadComments()
if (typeof loadComments === 'function') {
loadComments()
}
{{ else }}
const commentsToggle = document.getElementById('load-comments');

Expand Down

0 comments on commit c2d2200

Please sign in to comment.