25 lines
776 B
Plaintext
25 lines
776 B
Plaintext
- const { use, lazyload } = theme.comments
|
|
|
|
script.
|
|
(()=>{
|
|
const loadLivere = () => {
|
|
if (typeof LivereTower === 'object') window.LivereTower.init()
|
|
else {
|
|
(function(d, s) {
|
|
var j, e = d.getElementsByTagName(s)[0];
|
|
if (typeof LivereTower === 'function') { return; }
|
|
j = d.createElement(s);
|
|
j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
|
|
j.async = true;
|
|
e.parentNode.insertBefore(j, e);
|
|
})(document, 'script');
|
|
}
|
|
}
|
|
|
|
if ('!{use[0]}' === 'Livere' || !!{lazyload}) {
|
|
if (!{lazyload}) btf.loadComment(document.getElementById('lv-container'), loadLivere)
|
|
else loadLivere()
|
|
} else {
|
|
window.loadOtherComment = loadLivere
|
|
}
|
|
})() |