Skip to content

Commit

Permalink
Update libs/features/personalization/personalization.js
Browse files Browse the repository at this point in the history
Co-authored-by: Robert Bogos <[email protected]>
  • Loading branch information
zagi25 and robert-bogos authored Mar 6, 2025
1 parent 51d9ae3 commit 4327bc9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libs/features/personalization/personalization.js
Original file line number Diff line number Diff line change
Expand Up @@ -562,8 +562,7 @@ export const deleteMarkedEls = (rootEl = document) => {
};

export function addSectionAnchors(rootEl = document) {
const metadataBlocks = rootEl.querySelectorAll('.section-metadata');
metadataBlocks.forEach((block) => {
rootEl.querySelectorAll('.section-metadata').forEach((block) => {
[...block.children].forEach((row) => {
const col1 = row.children[0]?.textContent.toLowerCase().trim();
const col2 = row.children[1]?.textContent.toLowerCase().trim().split(' ').join('');
Expand Down

0 comments on commit 4327bc9

Please sign in to comment.