Skip to content

Commit 0a81152

Browse files
Update header.js
1 parent 57cfec0 commit 0a81152

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

blocks/header/header.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,13 @@ export default async function decorate(block) {
727727
);
728728
await buildDropdownsDesktop($header);
729729
// Ensure "Ask Ingredion" link opens in a new tab
730+
console.log(
731+
[...$header.querySelectorAll('a')].map(a => ({
732+
text: a.textContent,
733+
href: a.href
734+
}))
735+
);
736+
730737
const askLink = [...$header.querySelectorAll('a')]
731738
.find(a => a.textContent.includes('Ask Ingredion'));
732739
if (askLink) {

0 commit comments

Comments
 (0)