intake: guard hoisted EntityStep script on non-entity pages

This commit is contained in:
justin 2026-06-02 13:14:45 -05:00
parent 0fe8ce53ac
commit 4e916821c6

View file

@ -148,6 +148,7 @@
</style>
<script>
if (document.querySelector('[data-slug="entity"], [data-step="entity"]')) {
const get = <T extends HTMLElement>(id: string) => document.getElementById(id) as T;
const INPUTS = {
email: get<HTMLInputElement>("pw-email"),
@ -462,4 +463,5 @@
},
});
});
}
</script>