fix: 修正 abcjs 報錯的 bug

This commit is contained in:
Jerry committed 2025-07-09 13:24:42 +08:00
1 parent d2eacd2d8a
commit a61e216452
6 files changed
+12 -10

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
script. script.
(() = { (() => {
const abcjsInit = () => { const abcjsInit = () => {
const abcjsFn = () => { const abcjsFn = () => {
setTimeout(() => { setTimeout(() => {
+4 -2
View File
@@ -1,5 +1,5 @@
script. script.
(() => { (() => {
const getCommentUrl = () => { const getCommentUrl = () => {
const eleGroup = document.querySelectorAll('#recent-posts .article-title') const eleGroup = document.querySelectorAll('#recent-posts .article-title')
let urlArray = [] let urlArray = []
@@ -18,7 +18,9 @@ script.
includeReply: false includeReply: false
}).then(function (res) { }).then(function (res) {
document.querySelectorAll('#recent-posts .twikoo-count').forEach((item,index) => { document.querySelectorAll('#recent-posts .twikoo-count').forEach((item,index) => {
item.textContent = res[index].count if (res[index]) {
item.textContent = res[index].count
}
}) })
}).catch(function (err) { }).catch(function (err) {
console.log(err) console.log(err)
+1 -1
View File
@@ -5,7 +5,7 @@ hr.custom-hr
.comment-headline .comment-headline
i.fas.fa-comments.fa-fw i.fas.fa-comments.fa-fw
span= ' ' + _p('comment') span= ' ' + _p('comment')
if theme.comments.use.length > 1 if theme.comments.use.length > 1
.comment-switch .comment-switch
span.first-comment=defaultComment span.first-comment=defaultComment
Loaded 3 of 6 files, more files were not shown because too many files have changed in this diff. Show more