Added auto-reload after 2 minutes when logged in, to force auto-logout
This commit is contained in:
parent
1173406836
commit
f5bf77fbed
6 changed files with 12 additions and 0 deletions
|
@ -35,5 +35,6 @@
|
|||
</form>
|
||||
|
||||
<script src="/static/js/deposit.js"></script>
|
||||
<script src="/static/js/autoreload.js"></script>
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
@ -33,4 +33,6 @@
|
|||
{% translate "No history." %}
|
||||
{% endif %}
|
||||
|
||||
<script src="/static/js/autoreload.js"></script>
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
@ -44,4 +44,6 @@
|
|||
|
||||
{% endif %}
|
||||
|
||||
<script src="/static/js/autoreload.js"></script>
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
@ -97,4 +97,6 @@
|
|||
|
||||
{% endif %}
|
||||
|
||||
<script src="/static/js/autoreload.js"></script>
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
@ -146,4 +146,6 @@
|
|||
|
||||
</div>
|
||||
|
||||
<script src="/static/js/autoreload.js"></script>
|
||||
|
||||
{% endblock %}
|
||||
|
|
3
static/js/autoreload.js
Normal file
3
static/js/autoreload.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
setInterval(() => {
|
||||
location.reload();
|
||||
}, 1000*60*2); // reload after 2 minutes
|
Loading…
Add table
Add a link
Reference in a new issue