fix(view): fix pjax support for busuanzi
parent
c8542f8136
commit
3ef067faa1
|
@ -34,7 +34,7 @@
|
|||
|
||||
// Listen for completion of Pjax
|
||||
document.addEventListener('pjax:complete', () => {
|
||||
// MathJax reload logic
|
||||
// Plugin [MathJax] reload logic
|
||||
if (window.MathJax) {
|
||||
try {
|
||||
window.MathJax.typesetPromise && window.MathJax.typesetPromise();
|
||||
|
@ -42,6 +42,14 @@
|
|||
console.error('MathJax reload error:', e);
|
||||
}
|
||||
}
|
||||
// Plugin [Busuanzi] reload logic
|
||||
if (window.bszCaller && window.bszTag) {
|
||||
window.bszCaller.fetch('//busuanzi.ibruce.info/busuanzi?jsonpCallback=BusuanziCallback', a => {
|
||||
window.bszTag.texts(a);
|
||||
window.bszTag.shows();
|
||||
});
|
||||
}
|
||||
|
||||
// TODO pace stop loading animation
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue