ambethia / recaptcha

ReCaptcha helpers for ruby apps

Home Page:http://github.com/ambethia/recaptcha

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ReferenceError: grecaptcha is not defined

arslanmurtaza opened this issue · comments

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.)

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

I created a PR for it's fix. #394
i.e execute recaptcha ready method only if grecaptcha is present. (loaded)

Waiting for approval from reviewer.