diff --git a/js/ditto.js b/js/ditto.js
index 9cc343f..c02b696 100644
--- a/js/ditto.js
+++ b/js/ditto.js
@@ -26,7 +26,9 @@ var disqusCode = '
留言
'
+ " })();"
+ '';
-var disqus_identifier;
+var disqus_identifier = location.hash;
+var disqus_title = document.title;
+var disqus_url = location.href;
function initialize() {
// initialize sidebar and buttons
@@ -182,8 +184,6 @@ function show_loading() {
function router() {
var path = location.hash.replace("#", "./");
- disqus_identifier = path;
-
// default page if hash is empty
if (location.pathname === "/index.html") {
path = location.pathname.replace("index.html", ditto.index);