Skip to content

Commit f74e97c

Browse files
committed
Silence astro check hint on the floating-cta script
define:vars implicitly forces is:inline; make that explicit so `astro check` doesn't flag it.
1 parent 688e404 commit f74e97c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pages/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const twitter = socials.find((s) => s.handle);
6767
</main>
6868
<Footer />
6969

70-
<script define:vars={{ ctaIds: event.ctas.filter((cta) => cta.floating).map((cta) => cta.id) }}>
70+
<script is:inline define:vars={{ ctaIds: event.ctas.filter((cta) => cta.floating).map((cta) => cta.id) }}>
7171
// each floating cta appears once its hero counterpart scrolls out of view
7272
function bindFloatingCta(heroId, floatingId) {
7373
const hero = document.getElementById(heroId);

0 commit comments

Comments
 (0)