Merge pull request #593 from chengzhongxue/main

适配2.7.3版本Artalk评论
This commit is contained in:
困困鱼 2024-01-02 16:40:09 +08:00 committed by GitHub
commit 8edefd18cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

View File

@ -2,7 +2,7 @@
if (!document.getElementById('post-comment')) return
const initArtalk = () => {
window.artalkItem = new Artalk(Object.assign({
window.artalkItem = Artalk.init(Object.assign({
el: '#artalk-wrap',
server: GLOBAL_CONFIG.source.artalk.artalkUrl,
site: GLOBAL_CONFIG.source.artalk.siteName,
@ -12,7 +12,7 @@
}, null))
if (GLOBAL_CONFIG.lightbox === 'null') return
window.artalkItem.use(ctx => {
Artalk.use(ctx => {
ctx.on('list-loaded', () => {
ctx.getCommentList().forEach(comment => {
const $content = comment.getRender().$content

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long