Skip to content

Commit

Permalink
fix(templates): remove the type attribute from <script> tags
Browse files Browse the repository at this point in the history
* fix: remove the type attribute from <script> tags

* fix: remove the type attribute from <script> tags
  • Loading branch information
d9pouces authored Aug 23, 2024
1 parent 83fa927 commit 9f250a1
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% load static %}
<div id="fb-root"></div>
{{ fb_data|json_script:"allauth-facebook-settings" }}
<script type="text/javascript" src="{% static 'facebook/js/fbconnect.js' %}"></script>
<script src="{% static 'facebook/js/fbconnect.js' %}"></script>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% load static %}
<html>
<body>
<script type="text/javascript" src="{% static 'telegram/js/telegram.js' %}"></script>
<script src="{% static 'telegram/js/telegram.js' %}"></script>
</body>
</html>
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
4 changes: 2 additions & 2 deletions allauth/templates/mfa/webauthn/snippets/scripts.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% load i18n static %}
<noscript>{% translate "This functionality requires JavaScript." %}"</noscript>
<script type="text/javascript" src="{% static 'mfa/js/webauthn-json.js' %}"></script>
<script type="text/javascript" src="{% static 'mfa/js/webauthn.js' %}"></script>
<script src="{% static 'mfa/js/webauthn-json.js' %}"></script>
<script src="{% static 'mfa/js/webauthn.js' %}"></script>

0 comments on commit 9f250a1

Please sign in to comment.