ambethia / recaptcha

ReCaptcha helpers for ruby apps
http://github.com/ambethia/recaptcha
MIT License
1.97k stars 440 forks source link

ReferenceError: grecaptcha is not defined #393

Open arslanmurtaza opened 3 years ago

arslanmurtaza commented 3 years ago

It happens occasionally on our app, it's very rare but noticeable. Seems to have problem with grecaptcha.ready, do we have any fix for it?

I tried the callback implementation too, still the same error.

ruby: 2.6.6 rails: 6.0.3 recaptcha: 5.5.0 (I tried the latest one too, the issue is still there.)

jclusso commented 3 years ago

I noticed this today as well. All of a sudden on 5/17 my actions stopped firing.

arslanmurtaza commented 3 years ago

I created a PR for it's fix. https://github.com/ambethia/recaptcha/pull/394 i.e execute recaptcha ready method only if grecaptcha is present. (loaded)

Waiting for approval from reviewer.

woto commented 2 years ago

Same issue.