Add an option to add an ID on recaptcha
This commit is contained in:
parent
66fdaf0ef7
commit
874cd193e5
|
|
@ -1536,7 +1536,13 @@ tarteaucitron.services.recaptcha = {
|
||||||
"use strict";
|
"use strict";
|
||||||
window.tacRecaptchaOnLoad = tarteaucitron.user.recaptchaOnLoad || function() {};
|
window.tacRecaptchaOnLoad = tarteaucitron.user.recaptchaOnLoad || function() {};
|
||||||
tarteaucitron.fallback(['g-recaptcha'], '');
|
tarteaucitron.fallback(['g-recaptcha'], '');
|
||||||
|
|
||||||
|
if (tarteaucitron.user.recaptchaapi === undefined) {
|
||||||
tarteaucitron.addScript('https://www.google.com/recaptcha/api.js?onload=tacRecaptchaOnLoad');
|
tarteaucitron.addScript('https://www.google.com/recaptcha/api.js?onload=tacRecaptchaOnLoad');
|
||||||
|
} else {
|
||||||
|
tarteaucitron.addScript('https://www.google.com/recaptcha/api.js?onload=tacRecaptchaOnLoad&render=' + tarteaucitron.user.recaptchaapi);
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
"fallback": function () {
|
"fallback": function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue