aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Gräf <roman.graef@gmail.com>2017-11-06 11:24:47 +0100
committerGitHub <noreply@github.com>2017-11-06 11:24:47 +0100
commit48459fe12a79db303fd7c0cd2ae64cf3bc8c85e9 (patch)
treecfa79571b4733f44d8611b9939629378953219f3
parent7f4a8568c8032c8d57c42823dab5869e7264fe01 (diff)
downloadichtml-48459fe12a79db303fd7c0cd2ae64cf3bc8c85e9.tar.gz
ichtml-48459fe12a79db303fd7c0cd2ae64cf3bc8c85e9.tar.bz2
ichtml-48459fe12a79db303fd7c0cd2ae64cf3bc8c85e9.zip
Update default.js
-rw-r--r--res/default.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/res/default.js b/res/default.js
index 30c0ea4..d3bfdd3 100644
--- a/res/default.js
+++ b/res/default.js
@@ -24,9 +24,7 @@ var refs = {};
function load(id){
var item = refs[id];
let tag = location.href.split("#");
- if(tag.length>1){
- location.href = tag[0];
- }
+ location.href = tag[0] + "#" + id;
load_(item.url, item.name);
}