修复移动端 评论不加载的bug
This commit is contained in:
1 parent
64c3e260d4
commit
50bf6c8a87
2 files changed
+14
-8
No files matched your search
@@ -180,10 +180,7 @@ document.addEventListener("pjax:complete", function () {
|
||||
});
|
||||
});
|
||||
// 重载评论
|
||||
if (document.querySelector("#Comments") && !isMobile()) {
|
||||
for (let i = 0; i <= 5; i++) {
|
||||
loadBarrager()
|
||||
}
|
||||
if (document.querySelector("#Comments")) {
|
||||
Artalk.init({
|
||||
el: '#Comments', // 绑定元素的 Selector
|
||||
server: 'https://artalk.5b2.cn', // 后端地址
|
||||
@@ -191,6 +188,12 @@ document.addEventListener("pjax:complete", function () {
|
||||
flatMode: true
|
||||
})
|
||||
}
|
||||
// 重载评论弹幕 默认加载五次
|
||||
if (document.querySelector("#Comments") && !isMobile()) {
|
||||
for (let i = 0; i <= 5; i++) {
|
||||
loadBarrager()
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user