From 0244aaeb2f1a5485ea30b0d10c34b524a00bcb9e Mon Sep 17 00:00:00 2001 From: David Langley Date: Fri, 13 Sep 2024 12:18:32 +0100 Subject: [PATCH] use window.dispatchEvent --- src/components/structures/auth/Registration.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {