Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Commit 0244aae

Browse files
committed
use window.dispatchEvent
1 parent a6dec86 commit 0244aae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/structures/auth/Registration.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ export default class Registration extends React.Component<IProps, IState> {
427427
const event = new CustomEvent<MobileRegistrationResponse>("mobileregistrationresponse", {
428428
detail: mobileResponse,
429429
});
430-
document.dispatchEvent(event);
430+
window.dispatchEvent(event);
431431
newState.busy = false;
432432
newState.completedNoSignin = true;
433433
} else {

0 commit comments

Comments
 (0)