Skip to content

Commit

Permalink
incorporate review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruchika4 authored Feb 21, 2024
1 parent 298f2f9 commit 113dba3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions creativecloud/scripts/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function getDecorateAreaFn() {
const interactiveMarquee = area.querySelector('.interactive-marquee');
let fgDivs = null;
switch (true) {
case marquee != null:
case !!marquee:
eagerLoad(marquee.querySelector('img'));
break;
case interactiveMarquee?.classList.contains('changebg'): {
Expand All @@ -72,7 +72,7 @@ function getDecorateAreaFn() {
import(`${getConfig().codeRoot}/deps/interactive-marquee-changebg/changeBgMarquee.js`);
break;
}
case interactiveMarquee != null:
case !!interactiveMarquee:
interactiveMarquee.querySelector(':scope > div:nth-child(1)').querySelectorAll('img').forEach(eagerLoad);
fgDivs = interactiveMarquee.querySelector(':scope > div:nth-child(2)').querySelectorAll('div:not(:first-child)');
fgDivs.forEach((d) => eagerLoad(d.querySelector('img')));
Expand Down

0 comments on commit 113dba3

Please sign in to comment.