Merge pull request #254 from kuuak/master

Add onLoad callback to reCAPTCHA service
This commit is contained in:
Amauri CHAMPEAUX 2019-06-13 09:05:42 +02:00 committed by GitHub
commit fe84c6bc33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1327,8 +1327,9 @@ tarteaucitron.services.recaptcha = {
"cookies": ['nid'],
"js": function () {
"use strict";
window.tacRecaptchaOnLoad = tarteaucitron.user.recaptchaOnLoad || function() {};
tarteaucitron.fallback(['g-recaptcha'], '');
tarteaucitron.addScript('https://www.google.com/recaptcha/api.js');
tarteaucitron.addScript('https://www.google.com/recaptcha/api.js?onload=tacRecaptchaOnLoad');
},
"fallback": function () {
"use strict";