Skip to content

Commit f6cee7b

Browse files
committed
updated
1 parent fc8d2a0 commit f6cee7b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

resources/views/googlerecaptchav3/template.blade.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,17 @@
2020

2121
@if($hasAction)
2222
<script>
23+
@foreach($mappers as $action=>$fields)
24+
@foreach($fields as $field)
25+
var client{{$field}};
26+
@endforeach
27+
@endforeach
28+
2329
function onloadCallback() {
2430
@foreach($mappers as $action=>$fields)
2531
@foreach($fields as $field)
2632
if (document.getElementById('{{$field}}')) {
27-
let client{{$field}} = grecaptcha.render('{{$field}}', {
33+
client{{$field}} = grecaptcha.render('{{$field}}', {
2834
'sitekey': '{{$publicKey}}',
2935
@if($inline===true) 'badge': 'inline', @endif
3036
'size': 'invisible',

0 commit comments

Comments
 (0)