Skip to content

Commit

Permalink
removed scripts from be DieSchittigs#2
Browse files Browse the repository at this point in the history
  • Loading branch information
markus361 committed Apr 3, 2020
1 parent fa43f13 commit 80a660b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Resources/contao/templates/form_recaptcha.html5
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<?php if ($this->recaptchaType == 'invisible'): ?> data-size="invisible" <?php endif; ?>
></div>

<?php if(TL_MODE == 'FE'): ?>
<script src="https://www.google.com/recaptcha/api.js?onload=onRecaptchaLoadCallbackField<?= $this->strCaptchaKey ?><?php if ($this->recaptchaType == 'recaptcha3'): ?>&render=<?= $this->publicKey ?><?php endif; ?>" defer async></script>
<script>
function onRecaptchaLoadCallbackField<?= $this->strCaptchaKey ?> () {
Expand Down Expand Up @@ -45,4 +46,5 @@
<?php endif; ?>
}
</script>
<?php $this->endblock(); ?>
<?php endif; ?>
<?php $this->endblock(); ?>

0 comments on commit 80a660b

Please sign in to comment.