aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Gräf <roman.graef@gmail.com>2017-11-06 11:17:20 +0100
committerGitHub <noreply@github.com>2017-11-06 11:17:20 +0100
commit7f4a8568c8032c8d57c42823dab5869e7264fe01 (patch)
tree4d01011d16ed2659d479ab47dc1b6fc4c23d63dd
parente93953ffe2f852ebcf152bc2e7f9c192dc7031ad (diff)
downloadichtml-7f4a8568c8032c8d57c42823dab5869e7264fe01.tar.gz
ichtml-7f4a8568c8032c8d57c42823dab5869e7264fe01.tar.bz2
ichtml-7f4a8568c8032c8d57c42823dab5869e7264fe01.zip
Update default.js
-rw-r--r--res/default.js4
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);
}