Skip to content

Commit

Permalink
Merge pull request #11 from craig2017/master
Browse files Browse the repository at this point in the history
fixed recaptcha race condition causing render errors
  • Loading branch information
algodave committed May 21, 2018
2 parents 82e9512 + f11f198 commit fc90b55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/components/g-recaptcha.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default Component.extend({
tabindex: alias('tabIndex'),

renderReCaptcha() {
if (isNone(window.grecaptcha)) {
if (isNone(window.grecaptcha) || isNone(window.grecaptcha.render)) {
later(() => {
this.renderReCaptcha();
}, 500);
Expand Down

0 comments on commit fc90b55

Please sign in to comment.