mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-19 05:43:35 -05:00
Fix LoginWithQR Issue
This commit is contained in:
parent
39cfa3e367
commit
f3ee73a542
1 changed files with 1 additions and 0 deletions
|
@ -344,6 +344,7 @@ function QrModal(props: ModalProps) {
|
||||||
stream = str;
|
stream = str;
|
||||||
video.srcObject = str;
|
video.srcObject = str;
|
||||||
video.addEventListener("loadedmetadata", () => {
|
video.addEventListener("loadedmetadata", () => {
|
||||||
|
if (stopped) return stop(str);
|
||||||
video.play();
|
video.play();
|
||||||
modalProps.current.setPreview(video);
|
modalProps.current.setPreview(video);
|
||||||
snapshot();
|
snapshot();
|
||||||
|
|
Loading…
Reference in a new issue