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

Commit e512b25

Browse files
authored
Fix #11308 : Remove dependency on jquery on reCAPTCHA page (#14672)
1 parent 5025dbf commit e512b25

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

changelog.d/14672.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove dependency on jQuery on reCAPTCHA page.

synapse/res/templates/recaptcha.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33

44
{% block header %}
55
<script src="https://www.recaptcha.net/recaptcha/api.js" async defer></script>
6-
<script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
76
<link rel="stylesheet" href="/_matrix/static/client/register/style.css">
87
<script>
98
function captchaDone() {
10-
$('#registrationForm').submit();
9+
document.getElementById('registrationForm').submit();
1110
}
1211
</script>
1312
{% endblock %}

0 commit comments

Comments
 (0)