mercredi 12 septembre 2018

timeout with google recaptcha

I am seeing a Uncaught (in promise) timeout when running ember qunit tests for a page that includes a google recaptcha. Does anyone have any insight into what would cause this?

I am including the script on the index page like this: <script src="https://www.google.com/recaptcha/api.js?render=explicit" async defer></script>

and I am rendering the element like this: grecaptcha.render(document.getElementById('myid'), { 'sitekey': mySiteKey, 'expired-callback': this.get('expiredCallback').bind(this), 'error-callback': this.get('errorCallback').bind(this) });

I am using the google recaptcha test sitekey.




Aucun commentaire:

Enregistrer un commentaire