🐛 修復livere在pjax下的bugs

This commit is contained in:
Jerry
2020-08-03 18:02:44 +08:00
parent 75f5e991d0
commit 8f27859cea

View File

@@ -1,5 +1,9 @@
script.
function loadLivere () {
if (typeof LivereTower === 'object') {
window.LivereTower.init()
}
else {
(function(d, s) {
var j, e = d.getElementsByTagName(s)[0];
if (typeof LivereTower === 'function') { return; }
@@ -9,6 +13,7 @@ script.
e.parentNode.insertBefore(j, e);
})(document, 'script');
}
}
if ('!{theme.comments.use[0]}' === 'Livere' || !!{theme.comments.lazyload}) {
if (!{theme.comments.lazyload}) loadComment(document.getElementById('lv-container'), loadLivere)