From a1b07ad0e92e4526c9ba1711d39f06b58c2a7459 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Mon, 13 Apr 2020 09:22:08 +0200 Subject: Fixed javascript warning in resize.js --- templates/html/resize.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() -- cgit v0.12