From 56ec2bd15c46d4c04c139ed3579982bb3489d648 Mon Sep 17 00:00:00 2001 From: Roman Gräf Date: Mon, 6 Nov 2017 11:11:55 +0100 Subject: Update default.js --- res/default.js | 8 ++++---- 1 file 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]); - } } -- cgit