diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-04-13 07:22:08 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-04-13 07:22:08 (GMT) |
commit | a1b07ad0e92e4526c9ba1711d39f06b58c2a7459 (patch) | |
tree | 27f894681430b733eb8711442a4c9312b7cc3535 /templates | |
parent | 6c4e14b2cedc333e8989a38a4cd2726b168bcbaf (diff) | |
download | Doxygen-a1b07ad0e92e4526c9ba1711d39f06b58c2a7459.zip Doxygen-a1b07ad0e92e4526c9ba1711d39f06b58c2a7459.tar.gz Doxygen-a1b07ad0e92e4526c9ba1711d39f06b58c2a7459.tar.bz2 |
Fixed javascript warning in resize.jsRelease_1_8_18
Diffstat (limited to 'templates')
-rw-r--r-- | templates/html/resize.js | 4 |
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() |