Set up prettier

This commit is contained in:
hexaheximal 2025-07-30 11:29:36 -04:00
commit 5b4952827b
7 changed files with 393 additions and 172 deletions

View file

@ -36,7 +36,7 @@ import "../styles/login.css"
const params = new URLSearchParams(window.location.search)
for (const name of ["redirect_uri", "state", "nonce"]) {
const input = document.querySelector(
`input[name="${name}"]`
`input[name="${name}"]`,
) as HTMLInputElement
if (input && params.has(name)) input.value = params.get(name)!
}
@ -72,7 +72,7 @@ import "../styles/login.css"
identifier: { type: "m.id.user", user: username },
password,
}),
}
},
)
if (!res.ok) {
@ -82,12 +82,12 @@ import "../styles/login.css"
const data = await res.json()
const id = form.querySelector(
'input[name="user_id"]'
'input[name="user_id"]',
) as HTMLInputElement
id.value = data.user_id
const token = form.querySelector(
'input[name="access_token"]'
'input[name="access_token"]',
) as HTMLInputElement
token.value = data.access_token