use window.dispatchEvent

This commit is contained in:
David Langley 2024-09-13 12:18:32 +01:00
parent a6dec86374
commit 0244aaeb2f

View file

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