From 3d05d7b97c99cf8da5bade9eada593479331ef31 Mon Sep 17 00:00:00 2001 From: Ihor Vansach Date: Tue, 23 Jan 2018 20:38:12 +0200 Subject: [PATCH 1/2] Fix error grecaptcha is not defined --- view/frontend/web/js/reCaptcha.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/view/frontend/web/js/reCaptcha.js b/view/frontend/web/js/reCaptcha.js index c2e9790..9413162 100644 --- a/view/frontend/web/js/reCaptcha.js +++ b/view/frontend/web/js/reCaptcha.js @@ -129,8 +129,11 @@ define( var me = this; if (this.getIsVisible()) { - setTimeout(function () { - me.initCaptcha(); + var initCaptchaInterval = setInterval(function () { + if (window.grecaptcha) { + clearInterval(initCaptchaInterval); + me.initCaptcha(); + } }, 100); } }, From acaa320bcea0c5eb5ff3cbe44c7f591647ae1152 Mon Sep 17 00:00:00 2001 From: Riccardo Tempesta Date: Mon, 29 Jan 2018 14:23:39 +0100 Subject: [PATCH 2/2] Version bump --- etc/module.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/module.xml b/etc/module.xml index 10d6f6a..09f6e72 100644 --- a/etc/module.xml +++ b/etc/module.xml @@ -21,7 +21,7 @@ --> - +