use window.dispatchEvent

pull/28192/head
David Langley 2024-09-13 12:18:32 +01:00
parent a6dec86374
commit 0244aaeb2f
1 changed files with 1 additions and 1 deletions

View File

@ -427,7 +427,7 @@ export default class Registration extends React.Component<IProps, IState> {
const event = new CustomEvent<MobileRegistrationResponse>("mobileregistrationresponse", {
detail: mobileResponse,
});
document.dispatchEvent(event);
window.dispatchEvent(event);
newState.busy = false;
newState.completedNoSignin = true;
} else {