Screenshot of code. Highlighted area reads: page.on('subdomain', (/** @type {any} */ data) => { console.log('subdomain', data) const session = db.sessions[request.session.id] const state = session.registrationFormState if (state === undefined) { throw new Error('State is undefined') } state.set(state.states.CHECKING_AVAILABILITY) page.send(html`<${ProgressIndicator} state='${state}' />`)
https://s3-eu-central-1.amazonaws.com/mastodon-aral/media_attachments/files/112/083/873/220/571/053/original/3d5ced415071a7fc.png