diff --git a/src/components/structures/auth/Registration.tsx b/src/components/structures/auth/Registration.tsx index 0d8c62604a..f2a04d00b4 100644 --- a/src/components/structures/auth/Registration.tsx +++ b/src/components/structures/auth/Registration.tsx @@ -427,7 +427,7 @@ export default class Registration extends React.Component { const event = new CustomEvent("mobileregistrationresponse", { detail: mobileResponse, }); - document.dispatchEvent(event); + window.dispatchEvent(event); newState.busy = false; newState.completedNoSignin = true; } else {