blind inline oop
All checks were successful
Jenkins
Ellpeck/Web/pipeline/head This commit looks good

This commit is contained in:
Ell 2023-06-13 17:36:14 +02:00
parent 11c00e85b3
commit a4b5dae3ad

View file

@ -45,10 +45,9 @@ function populateManual(lang) {
entries.append(t);
}
let anchor = undefined || location.hash;
// this is probably a terrible hack
if (anchor.startsWith("#")) {
let element = $(anchor);
// force-scroll to proper anchor
if (location.hash.startsWith("#")) {
let element = $(location.hash);
if (element.length) {
$('html, body').animate({
scrollTop: element.offset().top