Skip to content

Commit a1b07ad

Browse files
committed
Fixed javascript warning in resize.js
1 parent 6c4e14b commit a1b07ad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

templates/html/resize.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ function initResizable()
9292
}
9393
collapsedWidth=width;
9494
}
95-
(document.getElementById(location.hash.slice(1))||document.body).scrollIntoView();
95+
if (location.hash.slice(1)) {
96+
(document.getElementById(location.hash.slice(1))||document.body).scrollIntoView();
97+
}
9698
}
9799

98100
function collapseExpand()

0 commit comments

Comments
 (0)