Fix: add is:inline to support-us script so onclick handlers can reach functions
Astro wraps <script> tags as ES modules; inline onclick="fn()" only reaches window globals. is:inline emits the script verbatim so all functions are global. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
a9d72fcde2
commit
51fb8c1553
1 changed files with 1 additions and 1 deletions
|
|
@ -780,7 +780,7 @@ const faqs = [
|
||||||
<SiteFooter fullBleedOnMobile />
|
<SiteFooter fullBleedOnMobile />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script is:inline>
|
||||||
// ── Nav scroll ────────────────────────────────────────────
|
// ── Nav scroll ────────────────────────────────────────────
|
||||||
const nav = document.getElementById("site-nav");
|
const nav = document.getElementById("site-nav");
|
||||||
if (nav) {
|
if (nav) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue