diff options
author | Roman Gräf <roman.graef@gmail.com> | 2017-11-06 11:17:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-06 11:17:20 +0100 |
commit | 7f4a8568c8032c8d57c42823dab5869e7264fe01 (patch) | |
tree | 4d01011d16ed2659d479ab47dc1b6fc4c23d63dd /res | |
parent | e93953ffe2f852ebcf152bc2e7f9c192dc7031ad (diff) | |
download | ichtml-7f4a8568c8032c8d57c42823dab5869e7264fe01.tar.gz ichtml-7f4a8568c8032c8d57c42823dab5869e7264fe01.tar.bz2 ichtml-7f4a8568c8032c8d57c42823dab5869e7264fe01.zip |
Update default.js
Diffstat (limited to 'res')
-rw-r--r-- | res/default.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/res/default.js b/res/default.js index ecbef48..30c0ea4 100644 --- a/res/default.js +++ b/res/default.js @@ -23,6 +23,10 @@ var refs = {}; function load(id){
var item = refs[id];
+ let tag = location.href.split("#");
+ if(tag.length>1){
+ location.href = tag[0];
+ }
load_(item.url, item.name);
}
|