From 608a06b53694759fc621e058f2eaba3ba0d5d1f2 Mon Sep 17 00:00:00 2001 From: ruanyf Date: Sat, 26 Apr 2014 09:32:55 +0800 Subject: [PATCH] edit ditto.js --- js/ditto.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/ditto.js b/js/ditto.js index a3a1885..291b5b9 100644 --- a/js/ditto.js +++ b/js/ditto.js @@ -203,9 +203,9 @@ function router() { function loadDisqus() { // http://docs.disqus.com/help/2/ window.disqus_shortname = 'es6'; - window.disqus_identifier = location.hash?location.hash.replace("#", ""):'index'; - // window.disqus_title =$(ditto.content_id+" h1").text(); - window.disqus_url = 'http://es6.ruanyifeng.com/' + location.hash?location.hash.replace("#", ""):'index'; + window.disqus_identifier = (location.hash?location.hash.replace("#", ""):'index'); + window.disqus_title =$(ditto.content_id+" h1").text(); + window.disqus_url = 'http://es6.ruanyifeng.com/' + (location.hash?location.hash.replace("#", ""):'index'); // http://docs.disqus.com/developers/universal/ (function() {