edit ditto.js

This commit is contained in:
ruanyf
2014-04-26 01:14:57 +08:00
parent d300fb2db9
commit dfce3f7f28
+3 -1
View File
@@ -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);