From 7083ffa4a20e26b32f12f06e651d972da509fa89 Mon Sep 17 00:00:00 2001 From: a flying potato <80830782+a-flying-potato@users.noreply.github.com> Date: Sat, 10 Sep 2022 21:57:26 +0200 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/d09fbf6436be892b61bbe02454e1d7d7229c50d8/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 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"]');