fix: 修復tabs 標簽外挂設爲-1時,按鈕點擊沒反應的bugs

This commit is contained in:
Jerry
2020-12-15 18:52:58 +08:00
Unverified
parent d82f69e83b
commit 83299dfd2f
5 changed files with 13 additions and 11 deletions

View File

@@ -41,7 +41,7 @@ script.
if ('!{theme.comments.use[0]}' === 'Valine' || !!{theme.comments.lazyload}) {
if (!{theme.comments.lazyload}) btf.loadComment(document.querySelector('#vcomment'),loadValine)
else setTimeout(() => loadValine(), 0)
else setTimeout(loadValine, 0)
} else {
function loadOtherComment () {
loadValine()