Fix JS-less switch
This commit is contained in:
parent
b66299e7f7
commit
eaee6fd039
|
@ -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;
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue