Skip to content

Commit

Permalink
Merge pull request #14 from derweba/master
Browse files Browse the repository at this point in the history
Fix siteKey rendering for script src
  • Loading branch information
Benjamin-K authored Jun 22, 2020
2 parents 054216a + 7c0bd6b commit e37aef4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Resources/Private/Form/CaptchaV3.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<script type="text/javascript">
window.grecaptchaElements = window.grecaptchaElements || [];
var siteKey = '{element.properties.siteKey}';
var action = '{element.properties.action}'
var action = '{element.properties.action}';
var selector = '#{element.uniqueIdentifier}';
window.grecaptchaElements.push({
siteKey: siteKey,
Expand Down Expand Up @@ -36,11 +36,11 @@
m = d.createElement('script'),
m.async = 1,
m.defer = 1,
m.src = 'https://www.google.com/recaptcha/api.js?render={element.properties.siteKey}&onload=grecaptchaOnload',
m.src = 'https://www.google.com/recaptcha/api.js?render=<f:format.raw>{element.properties.siteKey}</f:format.raw>&onload=grecaptchaOnload',
d.body.appendChild(m)
);
}(document, window)
</script>
</f:if>

</f:section>
</f:section>

0 comments on commit e37aef4

Please sign in to comment.