Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanDaDeng committed Apr 28, 2019
1 parent fc8d2a0 commit f6cee7b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion resources/views/googlerecaptchav3/template.blade.php
Expand Up @@ -20,11 +20,17 @@

@if($hasAction)
<script>
@foreach($mappers as $action=>$fields)
@foreach($fields as $field)
var client{{$field}};
@endforeach
@endforeach
function onloadCallback() {
@foreach($mappers as $action=>$fields)
@foreach($fields as $field)
if (document.getElementById('{{$field}}')) {
let client{{$field}} = grecaptcha.render('{{$field}}', {
client{{$field}} = grecaptcha.render('{{$field}}', {
'sitekey': '{{$publicKey}}',
@if($inline===true) 'badge': 'inline', @endif
'size': 'invisible',
Expand Down

0 comments on commit f6cee7b

Please sign in to comment.