Skip to content

Commit

Permalink
🤖 docs: Simplify scripts.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
a-flying-potato authored and make-github-pseudonymous-again committed Sep 10, 2022
1 parent 34ac771 commit 7083ffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/scripts/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"]');
Expand Down

0 comments on commit 7083ffa

Please sign in to comment.