From 665623793b7610f2d9be8c1338c23e82f1b98159 Mon Sep 17 00:00:00 2001 From: inkss Date: Mon, 27 Jun 2022 14:15:27 +0800 Subject: [PATCH] fix(comment): disqus --- layout/_plugins/comments/disqus/script.ejs | 1 + 1 file changed, 1 insertion(+) diff --git a/layout/_plugins/comments/disqus/script.ejs b/layout/_plugins/comments/disqus/script.ejs index f7342e136..94b6fc1e5 100644 --- a/layout/_plugins/comments/disqus/script.ejs +++ b/layout/_plugins/comments/disqus/script.ejs @@ -71,6 +71,7 @@ // 点击了加载 function needLoadDisqus() { + if(!document.querySelectorAll("#layoutHelper-comments")[0])return; checkDisqus(); volantis.dom.$(document.getElementById("load-btns")).hide(); volantis.dom.$(document.getElementById("loading-comments")).show();