mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-18 09:21:32 +00:00
fix: noscript redirect when nojs route is disabled
This commit is contained in:
parent
f69ea305f1
commit
29eb1c9550
@ -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 %}
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user