diff options
author | Roman Gräf <roman.graef@gmail.com> | 2017-11-06 11:24:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-06 11:24:47 +0100 |
commit | 48459fe12a79db303fd7c0cd2ae64cf3bc8c85e9 (patch) | |
tree | cfa79571b4733f44d8611b9939629378953219f3 | |
parent | 7f4a8568c8032c8d57c42823dab5869e7264fe01 (diff) | |
download | ichtml-48459fe12a79db303fd7c0cd2ae64cf3bc8c85e9.tar.gz ichtml-48459fe12a79db303fd7c0cd2ae64cf3bc8c85e9.tar.bz2 ichtml-48459fe12a79db303fd7c0cd2ae64cf3bc8c85e9.zip |
Update default.js
-rw-r--r-- | res/default.js | 4 |
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);
}
|