|
|
|
@ -15,13 +15,15 @@ script.
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const getCount = () => {
|
|
|
|
|
const countELement = document.getElementById('twikoo-count')
|
|
|
|
|
if(!countELement) return
|
|
|
|
|
twikoo.getCommentsCount({
|
|
|
|
|
envId: '!{envId}',
|
|
|
|
|
region: '!{region}',
|
|
|
|
|
urls: [window.location.pathname],
|
|
|
|
|
includeReply: false
|
|
|
|
|
}).then(function (res) {
|
|
|
|
|
document.getElementById('twikoo-count').innerText = res[0].count
|
|
|
|
|
countELement.innerText = res[0].count
|
|
|
|
|
}).catch(function (err) {
|
|
|
|
|
console.error(err);
|
|
|
|
|
});
|
|
|
|
@ -48,4 +50,4 @@ script.
|
|
|
|
|
loadTwikoo()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})()
|
|
|
|
|
})()
|
|
|
|
|