mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-20 19:02:33 +00:00
Fix Changyan on Pjax sites (#252)
This commit is contained in:
parent
9f0be6848a
commit
c95976dd19
6
source/js/third-party/comments/changyan.js
vendored
6
source/js/third-party/comments/changyan.js
vendored
@ -8,7 +8,11 @@ document.addEventListener('page:loaded', () => {
|
||||
);
|
||||
} else if (CONFIG.page.comments) {
|
||||
NexT.utils.loadComments('#SOHUCS')
|
||||
.then(() => NexT.utils.getScript('https://changyan.sohu.com/upload/changyan.js'))
|
||||
.then(() => {
|
||||
delete window.changyan;
|
||||
delete window.cyan;
|
||||
return NexT.utils.getScript('https://changyan.sohu.com/upload/changyan.js');
|
||||
})
|
||||
.then(() => {
|
||||
window.changyan.api.config({
|
||||
appid: CONFIG.changyan.appid,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user