Skip to content
This repository has been archived by the owner on Mar 12, 2019. It is now read-only.

Commit

Permalink
Merge branch 'magefan-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenix128 committed Jan 29, 2018
2 parents eb09135 + acaa320 commit 412e75f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="MSP_ReCaptcha" setup_version="1.4.2">
<module name="MSP_ReCaptcha" setup_version="1.4.3">
<sequence>
<module name="MSP_SecuritySuiteCommon"/>
</sequence>
Expand Down
7 changes: 5 additions & 2 deletions view/frontend/web/js/reCaptcha.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
},
Expand Down

0 comments on commit 412e75f

Please sign in to comment.