commit
8edefd18cc
|
@ -2,7 +2,7 @@
|
||||||
if (!document.getElementById('post-comment')) return
|
if (!document.getElementById('post-comment')) return
|
||||||
const initArtalk = () => {
|
const initArtalk = () => {
|
||||||
|
|
||||||
window.artalkItem = new Artalk(Object.assign({
|
window.artalkItem = Artalk.init(Object.assign({
|
||||||
el: '#artalk-wrap',
|
el: '#artalk-wrap',
|
||||||
server: GLOBAL_CONFIG.source.artalk.artalkUrl,
|
server: GLOBAL_CONFIG.source.artalk.artalkUrl,
|
||||||
site: GLOBAL_CONFIG.source.artalk.siteName,
|
site: GLOBAL_CONFIG.source.artalk.siteName,
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
}, null))
|
}, null))
|
||||||
|
|
||||||
if (GLOBAL_CONFIG.lightbox === 'null') return
|
if (GLOBAL_CONFIG.lightbox === 'null') return
|
||||||
window.artalkItem.use(ctx => {
|
Artalk.use(ctx => {
|
||||||
ctx.on('list-loaded', () => {
|
ctx.on('list-loaded', () => {
|
||||||
ctx.getCommentList().forEach(comment => {
|
ctx.getCommentList().forEach(comment => {
|
||||||
const $content = comment.getRender().$content
|
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
Loading…
Reference in New Issue