From 63ca84a6488897e6bebf08c709057e8fe1ac6a52 Mon Sep 17 00:00:00 2001 From: ruanyf Date: Sat, 26 Apr 2014 00:55:03 +0800 Subject: [PATCH] edit ditto.js --- js/ditto.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ditto.js b/js/ditto.js index dd6e66a..d1d6a96 100644 --- a/js/ditto.js +++ b/js/ditto.js @@ -211,8 +211,8 @@ function router() { DISQUS.reset({ reload: true, config: function () { - this.page.identifier = "newidentifier"; - this.page.url = "http://example.com/#!newthread"; + this.page.identifier = location.hash; + this.page.url = 'http://'+location.host+'/#!'+location.hash.replace("#", ""); } });