diff --git a/doc/scripts/header.js b/doc/scripts/header.js index a5e178c..94cb6c9 100644 --- a/doc/scripts/header.js +++ b/doc/scripts/header.js @@ -13,7 +13,7 @@ domReady(() => { projectname.text = 'aureooms/js-sat'; 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"]');