From 741dd6be67bb6d6286303163d1b4dde6f2525112 Mon Sep 17 00:00:00 2001 From: lucmuller Date: Tue, 26 Jun 2018 10:32:31 +0200 Subject: [PATCH] Ajout d'un engagement pour Recaptcha MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Afin de laisser la possibilité à l'utilisateur d'afficher recaptcha pour envoyer les formulaires --- tarteaucitron.services.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 12291f5..ba771ea 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -1206,7 +1206,13 @@ tarteaucitron.services.recaptcha = { "cookies": ['nid'], "js": function () { "use strict"; + tarteaucitron.fallback(['g-recaptcha'], ''); tarteaucitron.addScript('https://www.google.com/recaptcha/api.js'); + }, + "fallback": function () { + "use strict"; + var id = 'recaptcha'; + tarteaucitron.fallback(['g-recaptcha'], tarteaucitron.engage(id)); } }; @@ -2159,4 +2165,3 @@ tarteaucitron.services.webmecanik = { }); } }; -