mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 03:53:30 +08:00
fix(comments): fix DISQUS ReferenceError
This commit is contained in:
parent
c1fcec95a6
commit
252fa7ca4b
@ -13,10 +13,10 @@
|
||||
|
||||
<script>
|
||||
window.addEventListener('onColorSchemeChange', (e) => {
|
||||
if (DISQUS) {
|
||||
DISQUS.reset({
|
||||
if (window.DISQUS) {
|
||||
window.DISQUS.reset({
|
||||
reload: true
|
||||
});
|
||||
}
|
||||
})
|
||||
</script>
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user