Skip to content

Commit

Permalink
Merge pull request #69 from marketing-relevance/fix-rendering-placement
Browse files Browse the repository at this point in the history
Only enable explicit rending if inline option is enabled.
  • Loading branch information
RyanDaDeng authored Jul 14, 2020
2 parents a5c7d8a + 8d5f31d commit 54bdad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/googlerecaptchav3/template.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function onloadCallback() {
@endforeach
}
</script>
<script id='gReCaptchaScript' src="{{$apiJsUrl}}?render=explicit&onload=onloadCallback"
<script id='gReCaptchaScript' src="{{$apiJsUrl}}?render={{$inline ? 'explicit' : $publicKey}}&onload=onloadCallback"
defer
async {!! $nonce !!}></script>
@endif
Expand Down

0 comments on commit 54bdad6

Please sign in to comment.