Merge pull request #1335 from isHarryh/master
fix(view): fix pjax support for busuanzipull/1338/head
commit
b00d5ae9d9
|
@ -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