Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/reuixiy/hugo-theme-meme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/comments.js')
-rw-r--r--assets/js/comments.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/assets/js/comments.js b/assets/js/comments.js
index fa44f9e..e8ba96e 100644
--- a/assets/js/comments.js
+++ b/assets/js/comments.js
@@ -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');