Skip to content
This repository was archived by the owner on Feb 11, 2020. It is now read-only.

Conversation

@mkmelin
Copy link
Contributor

@mkmelin mkmelin commented Sep 18, 2019

At the time window.grecaptcha could still be unavailable. So, only access it after we know it's there.

I think this should work. But I don't get a captcha when testing locally with or without this patch... so unable to verify.

…xpectRecaptcha which is going to wait for grecaptcha to become awailable.
@TheoChevalier
Copy link
Contributor

CC @alanmoo do you know who could review this?

@alanmoo alanmoo requested a review from cadecairos September 18, 2019 16:21
Comment on lines +91 to +94
setTimeout(() => {
this.expectRecaptcha(callback);
}, 100);
return;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change? It doesn't appear to do anything

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strictly not necessary, it doesn't change the behaviour. But it's not good practice to have methods that sometimes return something (well undefined, so not much) and sometimes not, as some linters will tell you...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants