fix go back button

This commit is contained in:
rmanach 2023-09-21 12:25:30 +02:00
parent d1d87b4b97
commit 160d2faab6
2 changed files with 2 additions and 3 deletions

View File

@ -1,5 +1,4 @@
var start = function (url) { var start = function (url) {
var es = new ReconnectingEventSource(url); var es = new ReconnectingEventSource(url);
es.onopen = function () { es.onopen = function () {
@ -34,7 +33,7 @@ var start = function (url) {
} }
if (message.status == "FAILED") { if (message.status == "FAILED") {
window.location.reload(); window.location.reload();
} }
} }

View File

@ -45,7 +45,7 @@
{% block script %} {% block script %}
<script> <script>
function goBack() { function goBack() {
window.history.back(); window.location=document.referrer;
} }
</script> </script>
{% endblock %} {% endblock %}