Merge branch 'main' of github.com:vector-im/matrix-video-chat
This commit is contained in:
commit
3c30ca5f95
1 changed files with 4 additions and 0 deletions
|
@ -52,6 +52,10 @@ export function useRecaptcha(sitekey) {
|
|||
}, [recaptchaId, sitekey]);
|
||||
|
||||
const execute = useCallback(() => {
|
||||
if (!sitekey) {
|
||||
return Promise.resolve(null);
|
||||
}
|
||||
|
||||
if (!window.grecaptcha) {
|
||||
return Promise.reject(new Error("Recaptcha not loaded"));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue