mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-16 18:00:53 +08:00
🐛 修復livere在pjax下的bugs
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
script.
|
script.
|
||||||
function loadLivere () {
|
function loadLivere () {
|
||||||
|
if (typeof LivereTower === 'object') {
|
||||||
|
window.LivereTower.init()
|
||||||
|
}
|
||||||
|
else {
|
||||||
(function(d, s) {
|
(function(d, s) {
|
||||||
var j, e = d.getElementsByTagName(s)[0];
|
var j, e = d.getElementsByTagName(s)[0];
|
||||||
if (typeof LivereTower === 'function') { return; }
|
if (typeof LivereTower === 'function') { return; }
|
||||||
@@ -9,6 +13,7 @@ script.
|
|||||||
e.parentNode.insertBefore(j, e);
|
e.parentNode.insertBefore(j, e);
|
||||||
})(document, 'script');
|
})(document, 'script');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ('!{theme.comments.use[0]}' === 'Livere' || !!{theme.comments.lazyload}) {
|
if ('!{theme.comments.use[0]}' === 'Livere' || !!{theme.comments.lazyload}) {
|
||||||
if (!{theme.comments.lazyload}) loadComment(document.getElementById('lv-container'), loadLivere)
|
if (!{theme.comments.lazyload}) loadComment(document.getElementById('lv-container'), loadLivere)
|
||||||
|
|||||||
Reference in New Issue
Block a user