Skip to content

Commit

Permalink
test retry
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Rings authored and Justin Rings committed Aug 15, 2024
1 parent 8e9b480 commit 74940d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion express/blocks/floating-buttons/floating-buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ function initScrollWatcher(block) {

const primaryUrl = new URL(primaryCta);

const pageCta = Array.from(document.querySelectorAll('.section:first-of-type a.primaryCTA, .section:first-of-type a.cta, .section:first-of-type a.con-button, .section:first-of-type a.button')).find((a) => a.href === primaryUrl.href);
const pageCta = Array.from(
document.querySelectorAll('.section:first-of-type a.primaryCTA, .section:first-of-type a.cta, .section:first-of-type a.con-button, .section:first-of-type a.button'),
).find((a) => a.href === primaryUrl.href);

if (pageCta) hideOnIntersect.observe(pageCta);
}
Expand Down

0 comments on commit 74940d2

Please sign in to comment.