We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 54bdad6 + 905e926 commit aea40c8Copy full SHA for aea40c8
resources/views/googlerecaptchav3/template.blade.php
@@ -58,10 +58,11 @@ function onloadCallback() {
58
59
<script {!! $nonce !!}>
60
function refreshReCaptchaV3(fieldId,action){
61
- grecaptcha.reset(window['client'+fieldId]);
62
- grecaptcha.ready(function () {
63
- grecaptcha.execute(window['client'+fieldId], {
64
- action: action
+ return new Promise(function (resolve, reject) {
+ grecaptcha.ready(function () {
+ grecaptcha.execute(window['client'+fieldId], {
+ action: action
65
+ }).then(resolve);
66
});
67
68
}
0 commit comments