mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-12 22:17:06 +08:00
🐛 修復livere在pjax下的bugs
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user