intake: guard hoisted EntityStep script on non-entity pages
This commit is contained in:
parent
0fe8ce53ac
commit
4e916821c6
1 changed files with 2 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue