We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecf76af commit 8865b8fCopy full SHA for 8865b8f
1 file changed
web/index.html
@@ -915,7 +915,7 @@
915
// scroll to a section, without changing the browser history
916
917
function scrollToId(hash) {
918
- if(hash && hash != '') {
+ if(hash && hash != '' && document.getElementById(hash) !== null) {
919
var offset = $('#' + hash).offset();
920
if(typeof offset !== 'undefined')
921
$('html, body').animate({ scrollTop: offset.top }, 0);
0 commit comments