aboutsummaryrefslogtreecommitdiff
path: root/res/default.js
diff options
context:
space:
mode:
Diffstat (limited to 'res/default.js')
-rw-r--r--res/default.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/res/default.js b/res/default.js
index bdb87e4..ecbef48 100644
--- a/res/default.js
+++ b/res/default.js
@@ -66,9 +66,9 @@ function onload() {
el.appendChild(atag);
});
el.lastChild.classList.add('sidebar-last');
+ let tag = location.href.split("#");
+ if(tag.length > 1){
+ load(tag[1]);
+ }
});
- let tag = location.href.split("#");
- if(tag.length > 1){
- load(tag[1]);
- }
}