From e71b628b19b97eb6f2858396ff4ca1867d497297 Mon Sep 17 00:00:00 2001 From: a flying potato <80830782+a-flying-potato@users.noreply.github.com> Date: Sun, 19 Dec 2021 19:15:54 +0100 Subject: [PATCH] :robot: docs: Simplify scripts. Replace querySelectorAll(...)[0] by querySelector(...) in docs scripts. These changes were automatically generated by a transform whose code can be found at: - https://github.com/make-github-pseudonymous-again/rejuvenate/blob/457d6d9bfb7d08d917f0c3a95108832fc88fe176/src/transforms/codemod:doc-scripts-header-replace-querySelectorAll.js Please contact the author of the transform if you believe there was an error. --- doc/scripts/header.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"]');