fixed 昼夜切换 bug
This commit is contained in:
1 parent
aaf8813d8b
commit
7de8d0e253
6 files changed
+211
-122
No files matched your search
@@ -190,7 +190,8 @@ document.addEventListener("pjax:complete", function () {
|
||||
emoticons = window.siteConfig.artalk.emoticons || emoticons;
|
||||
}
|
||||
|
||||
Artalk.init({
|
||||
// 保存实例到全局变量 window.artalk
|
||||
window.artalk = Artalk.init({
|
||||
el: '#Comments', // 绑定元素的 Selector
|
||||
server: serverUrl, // 后端地址
|
||||
site: siteName, // 你的站点名
|
||||
@@ -201,10 +202,11 @@ document.addEventListener("pjax:complete", function () {
|
||||
darkMode: isDark,
|
||||
emoticons: emoticons
|
||||
})
|
||||
}
|
||||
// 重载评论弹幕
|
||||
if (document.querySelector("#Comments") && !isMobile()) {
|
||||
loadBarrager()
|
||||
|
||||
// Artalk 初始化完成后,再加载弹幕
|
||||
if (!isMobile() && window.loadBarrager) {
|
||||
window.loadBarrager();
|
||||
}
|
||||
}
|
||||
// 重载不蒜子统计
|
||||
if (typeof window.bsz_fetch === 'function') {
|
||||
|
||||
Reference in new issue
Block a user