Fix JS-less switch

This commit is contained in:
Matteo Gheza 2021-05-16 00:51:17 +02:00
parent b66299e7f7
commit eaee6fd039
2 changed files with 3 additions and 1 deletions

View File

@ -140,6 +140,9 @@ $(function () {
if ($("#frontend_version") !== undefined) {
$("#frontend_version").append(process.env.GIT_VERSION + " aggiornamento " + new Date(process.env.BUNDLE_DATE).toLocaleString());
}
if(getCookie("JSless")){
location.href="?JSless=0";
}
});
var offline = false;

View File

@ -97,7 +97,6 @@ table .tBody th {
<div id="footer" class="footer text-center p-3" style="background-color: rgba(0, 0, 0, 0.2)">
Allerta-VVF, software libero realizzato per {{ owner }}.
</div>
<script>location.href="?JSless=0";</script>
{# /Footer #}
{% endblock %}
{% endif %}