fix: check if DISQUS exists before execute DISQUS.reset

This commit is contained in:
Jimmy Cai 2021-01-01 13:30:59 +01:00
parent 5533589ace
commit 4f00b2f76c
No known key found for this signature in database
GPG Key ID: 3EA408E527F37B18

View File

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