Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnuescheler committed Jan 24, 2024
1 parent ee02fdb commit ed2dcd2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,12 @@ async function loadFonts() {
*/

function buildFragmentBlocks(container) {
console.log('building blocks');
container.querySelectorAll('a[href*="/fragments/"]:only-child').forEach((a) => {
const parent = a.parentNode;
const fragment =buildBlock('fragment', [[ a.cloneNode(true) ]])
const fragment = buildBlock('fragment', [[a.cloneNode(true)]]);
if (parent.tagName === 'P') {
parent.before(fragment);
parent.remove();
parent.remove();
} else {
a.before(fragment);
a.remove();
Expand Down

0 comments on commit ed2dcd2

Please sign in to comment.