diff --git a/doc/scripts/header.js b/doc/scripts/header.js index 1c9ad44..437b2b6 100644 --- a/doc/scripts/header.js +++ b/doc/scripts/header.js @@ -13,7 +13,7 @@ domReady(function () { projectname.text = 'trie-data-structure/uncompressed-trie'; 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"]');