Skip to content

Commit

Permalink
Fix matrix-org#11308 : Remove dependency on jquery on reCAPTCHA page
Browse files Browse the repository at this point in the history
  • Loading branch information
JeyRathnam committed Dec 13, 2022
1 parent 373c485 commit 761be32
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions synapse/res/templates/recaptcha.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@

{% block header %}
<script src="https://www.recaptcha.net/recaptcha/api.js" async defer></script>
<script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
<link rel="stylesheet" href="/_matrix/static/client/register/style.css">
<script>
function captchaDone() {
$('#registrationForm').submit();
document.getElementById('registrationForm').submit();
}
</script>
{% endblock %}
Expand Down

0 comments on commit 761be32

Please sign in to comment.