fix: noscript redirect when nojs route is disabled

This commit is contained in:
Bobby 2023-12-06 04:58:43 +07:00
parent f69ea305f1
commit 29eb1c9550
No known key found for this signature in database
GPG Key ID: B2F45B6A3C9A8FCA
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
#}
<noscript>
<style>body > section:not(#noscript) { display: none !important; }</style>
{% if noscriptRefreshUrl !== null -%}
{% if config.routes.nojs or noscriptRefreshUrl -%}
<!-- Redirect after 3 seconds -->
<meta http-equiv="refresh" content="3;url={{ noscriptRefreshUrl or 'nojs' }}">
{%- endif %}

View File

@ -7,7 +7,7 @@
</p>
{% if noscriptMessage or (noscriptMessage === null) -%}
{{ noscriptMessage | safe }}
{%- else -%}
{%- elif config.routes.nojs -%}
<p>If you are not automatically redirected to our No-JS uploader, <a href="nojs">click here</a>.</p>
{%- endif %}
</div>