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

Fix #11308 : Remove dependency on jquery on reCAPTCHA page #14672

Merged
merged 4 commits into from
Dec 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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