mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 18:32:22 +00:00
edit ditto.js
This commit is contained in:
parent
d300fb2db9
commit
dfce3f7f28
@ -208,13 +208,15 @@ function router() {
|
|||||||
normalize_paths();
|
normalize_paths();
|
||||||
create_page_anchors();
|
create_page_anchors();
|
||||||
|
|
||||||
DISQUS.reset({
|
if(window.DISQUS){
|
||||||
|
DISQUS.reset({
|
||||||
reload: true,
|
reload: true,
|
||||||
config: function () {
|
config: function () {
|
||||||
this.page.identifier = location.hash;
|
this.page.identifier = location.hash;
|
||||||
this.page.url = location.href;
|
this.page.url = location.href;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
$('#content code').map(function() {
|
$('#content code').map(function() {
|
||||||
Prism.highlightElement(this);
|
Prism.highlightElement(this);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user