diff --git a/js/ditto.js b/js/ditto.js index 1326bf3..b0dc1b2 100644 --- a/js/ditto.js +++ b/js/ditto.js @@ -208,13 +208,15 @@ function router() { normalize_paths(); create_page_anchors(); - DISQUS.reset({ + if(window.DISQUS){ + DISQUS.reset({ reload: true, config: function () { this.page.identifier = location.hash; this.page.url = location.href; } }); + } $('#content code').map(function() { Prism.highlightElement(this);