Skip to content

Commit

Permalink
fix: lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
twhite313 committed Jan 14, 2025
1 parent fb1d355 commit 75b2dc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eds/blocks/hero/hero.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ export default function decorate(block) {

const imgCollection = block.querySelectorAll('picture > img');
const heroContainer = document.querySelector('main > .hero-container');
if (heroContainer && (heroContainer === heroContainer.parentElement.children[0] || heroContainer === heroContainer.parentElement.children[1])) {
if (heroContainer && (heroContainer === heroContainer.parentElement.children[0]
|| heroContainer === heroContainer.parentElement.children[1])) {
imgCollection.forEach((img) => {
img.setAttribute('loading', 'eager');
img.setAttribute('fetchpriority', 'high');
Expand Down

0 comments on commit 75b2dc3

Please sign in to comment.