summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--templates/html/resize.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/html/resize.js b/templates/html/resize.js
index f04a51e..e1ad0fe 100644
--- a/templates/html/resize.js
+++ b/templates/html/resize.js
@@ -92,7 +92,9 @@ function initResizable()
}
collapsedWidth=width;
}
- (document.getElementById(location.hash.slice(1))||document.body).scrollIntoView();
+ if (location.hash.slice(1)) {
+ (document.getElementById(location.hash.slice(1))||document.body).scrollIntoView();
+ }
}
function collapseExpand()