fix(comments): fix DISQUS ReferenceError

This commit is contained in:
MinLiang Zeng 2022-03-28 17:33:15 +08:00 committed by GitHub
parent c1fcec95a6
commit 252fa7ca4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,10 +13,10 @@
<script>
window.addEventListener('onColorSchemeChange', (e) => {
if (DISQUS) {
DISQUS.reset({
if (window.DISQUS) {
window.DISQUS.reset({
reload: true
});
}
})
</script>
</script>