Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix #11308 : Remove dependency on jquery on reCAPTCHA page (#14672)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeyRathnam authored Dec 14, 2022
1 parent 5025dbf commit e512b25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.d/14672.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove dependency on jQuery on reCAPTCHA page.
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 e512b25

Please sign in to comment.