diff --git a/doc/scripts/header.js b/doc/scripts/header.js index 7671415..b842b06 100644 --- a/doc/scripts/header.js +++ b/doc/scripts/header.js @@ -13,7 +13,7 @@ domReady(() => { projectname.text = '@union-find/non-contiguous'; projectname.href = './index.html'; - const header = document.querySelectorAll('header')[0]; + const header = document.querySelector('header'); header.insertBefore(projectname, header.firstChild); const testlink = document.querySelector('header > a[data-ice="testLink"]');