From 5a0e777ba870122ec2dacb8b774ff004d40a79e5 Mon Sep 17 00:00:00 2001 From: Leo Fahrbach <leo.fahrbach@tum.de> Date: Tue, 18 Oct 2022 22:00:12 +0200 Subject: [PATCH] Fix websocket reloading, by removing rouge space --- vote/templates/vote/index.html | 4 ++-- vote/templates/vote/spectator.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vote/templates/vote/index.html b/vote/templates/vote/index.html index efbf25e..9cafb44 100644 --- a/vote/templates/vote/index.html +++ b/vote/templates/vote/index.html @@ -75,7 +75,7 @@ {# Automatic reload of the page: #} {# - either if the start date / end date of a election is due#} {# - or if the admin started / stopped one election and the page is notified with a websocket#} -<script src="{% static " js/jquery-3.5.1.min.js" %}" +<script src="{% static "js/jquery-3.5.1.min.js" %}" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="></script> -<script src="{% static " js/reload.js" %}"></script> +<script src="{% static "js/reload.js" %}"></script> {% endblock %} \ No newline at end of file diff --git a/vote/templates/vote/spectator.html b/vote/templates/vote/spectator.html index d026cfa..1188ea7 100644 --- a/vote/templates/vote/spectator.html +++ b/vote/templates/vote/spectator.html @@ -76,7 +76,7 @@ {# Automatic reload of the page: #} {# - either if the start date / end date of a election is due#} {# - or if the admin started / stopped one election and the page is notified with a websocket#} -<script src="{% static " js/jquery-3.5.1.min.js" %}" +<script src="{% static "js/jquery-3.5.1.min.js" %}" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="></script> -<script src="{% static " js/reload.js" %}"></script> +<script src="{% static "js/reload.js" %}"></script> {% endblock %} \ No newline at end of file -- GitLab