Skip to content

Commit 608a06b

Browse files
committed
edit ditto.js
1 parent b4f35c2 commit 608a06b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

js/ditto.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,9 @@ function router() {
203203
function loadDisqus() {
204204
// http://docs.disqus.com/help/2/
205205
window.disqus_shortname = 'es6';
206-
window.disqus_identifier = location.hash?location.hash.replace("#", ""):'index';
207-
// window.disqus_title =$(ditto.content_id+" h1").text();
208-
window.disqus_url = 'http://es6.ruanyifeng.com/' + location.hash?location.hash.replace("#", ""):'index';
206+
window.disqus_identifier = (location.hash?location.hash.replace("#", ""):'index');
207+
window.disqus_title =$(ditto.content_id+" h1").text();
208+
window.disqus_url = 'http://es6.ruanyifeng.com/' + (location.hash?location.hash.replace("#", ""):'index');
209209

210210
// http://docs.disqus.com/developers/universal/
211211
(function() {

0 commit comments

Comments
 (0)