Skip to content

Commit

Permalink
fix: remove the type attribute from <script> tags
Browse files Browse the repository at this point in the history
  • Loading branch information
d9pouces committed Aug 23, 2024
1 parent 123076c commit 710a9bb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion allauth/templates/account/email.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
{% endif %}
{% endblock content %}
{% block extra_body %}
<script type="text/javascript">
<script>
(function() {
var message = "{% trans 'Do you really want to remove the selected email address?' %}";
var actions = document.getElementsByName('action_remove');
Expand Down
2 changes: 1 addition & 1 deletion allauth/templates/mfa/authenticate.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
{% endelement %}
{{ js_data|json_script:"js_data" }}
{% include "mfa/webauthn/snippets/scripts.html" %}
<script type="text/javascript">
<script>
allauth.webauthn.forms.authenticateForm({
ids: {
authenticate: "mfa_webauthn_authenticate",
Expand Down
2 changes: 1 addition & 1 deletion allauth/templates/mfa/webauthn/reauthenticate.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{% endelement %}
{{ js_data|json_script:"js_data" }}
{% include "mfa/webauthn/snippets/scripts.html" %}
<script type="text/javascript">
<script>
allauth.webauthn.forms.authenticateForm({
ids: {
authenticate: "mfa_webauthn_reauthenticate",
Expand Down
2 changes: 1 addition & 1 deletion allauth/templates/mfa/webauthn/snippets/login_script.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{{ redirect_field }}
<input type="hidden" name="credential" id="mfa_credential">
</form>
<script type="text/javascript">
<script>
allauth.webauthn.forms.loginForm({
ids: {
login: "passkey_login",
Expand Down

0 comments on commit 710a9bb

Please sign in to comment.