fixed 工具栏bug 修复
This commit is contained in:
1 parent
8c3232fadf
commit
534ed6842b
2 files changed
+182
-101
No files matched your search
@@ -96,25 +96,41 @@ document.addEventListener("pjax:complete", function () {
|
||||
|
||||
// 初始化段落评论
|
||||
if (typeof window.initParagraphComments === 'function') {
|
||||
window.initParagraphComments();
|
||||
try {
|
||||
window.initParagraphComments();
|
||||
} catch(e) { console.error('initParagraphComments error:', e); }
|
||||
}
|
||||
|
||||
// 初始化友链状态
|
||||
if (typeof window.initLinkStatus === 'function') {
|
||||
window.initLinkStatus();
|
||||
try {
|
||||
window.initLinkStatus();
|
||||
} catch(e) { console.error('initLinkStatus error:', e); }
|
||||
}
|
||||
|
||||
// 重载评论
|
||||
if (typeof window.initArtalk === 'function') {
|
||||
window.initArtalk();
|
||||
try {
|
||||
window.initArtalk();
|
||||
} catch(e) { console.error('initArtalk error:', e); }
|
||||
}
|
||||
|
||||
// 重载不蒜子统计
|
||||
if (typeof window.bsz_fetch === 'function') {
|
||||
window.bsz_fetch();
|
||||
try {
|
||||
window.bsz_fetch();
|
||||
} catch(e) { console.error('bsz_fetch error:', e); }
|
||||
}
|
||||
|
||||
// 重载 Search 和 Floating Tools (Moved from main.js)
|
||||
if (typeof window.initFloatingTools === 'function') window.initFloatingTools();
|
||||
if (typeof window.initSearch === 'function') window.initSearch();
|
||||
if (typeof window.initFloatingTools === 'function') {
|
||||
try {
|
||||
window.initFloatingTools();
|
||||
} catch(e) { console.error('initFloatingTools error:', e); }
|
||||
}
|
||||
if (typeof window.initSearch === 'function') {
|
||||
try {
|
||||
window.initSearch();
|
||||
} catch(e) { console.error('initSearch error:', e); }
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user