Merge pull request #4950 from millenniumhand/patch-1

Fixed code formatting for implicit_spawn_seconds (#4949)
This commit is contained in:
Min RK
2025-03-20 10:51:33 +01:00
committed by GitHub

View File

@@ -56,20 +56,18 @@
{% block script %} {% block script %}
{{ super () }} {{ super () }}
{% if implicit_spawn_seconds %} {% if implicit_spawn_seconds %}
{# djlint:off #}
<script type="text/javascript"> <script type="text/javascript">
var spawn_url = "{{ spawn_url }}"; var spawn_url = "{{ spawn_url }}";
var implicit_spawn_seconds = { var implicit_spawn_seconds = {{ implicit_spawn_seconds }};
{
implicit_spawn_seconds
}
};
setTimeout(function() { setTimeout(function() {
console.log("redirecting to spawn at", spawn_url); console.log("redirecting to spawn at", spawn_url);
window.location = spawn_url; window.location = spawn_url;
}, },
1000 * implicit_spawn_seconds 1000 * implicit_spawn_seconds
); );
</script> </script>
{# djlint:on #}
{% endif %} {% endif %}
<script type="text/javascript"> <script type="text/javascript">
require(["not_running"]); require(["not_running"]);