mirror of
https://github.com/element-hq/element-call.git
synced 2026-10-30 03:12:28 +00:00
Fix null recaptcha target
This commit is contained in:
1 parent
a189f3ad98
commit
a33d1364b6
1 file changed
+1
-1
@@ -64,7 +64,7 @@ export function useRecaptcha(sitekey) {
|
||||
return new Promise((resolve, reject) => {
|
||||
const observer = new MutationObserver((mutationsList) => {
|
||||
for (const item of mutationsList) {
|
||||
if (item.target.style?.visibility !== "visible") {
|
||||
if (item.target?.style?.visibility !== "visible") {
|
||||
reject(new Error("Recaptcha dismissed"));
|
||||
observer.disconnect();
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user