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.
(() = {
(() => {
const abcjsInit = () => {
const abcjsFn = () => {
setTimeout(() => {
+4 -2
View File
@@ -1,5 +1,5 @@
script.
(() => {
(() => {
const getCommentUrl = () => {
const eleGroup = document.querySelectorAll('#recent-posts .article-title')
let urlArray = []
@@ -18,7 +18,9 @@ script.
includeReply: false
}).then(function (res) {
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) {
console.log(err)
+1 -1
View File
@@ -5,7 +5,7 @@ hr.custom-hr
.comment-headline
i.fas.fa-comments.fa-fw
span= ' ' + _p('comment')
if theme.comments.use.length > 1
.comment-switch
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