Including home.blade -> hasFocus test

This commit is contained in:
Bruno F. Fontes 2019-05-31 11:42:18 -03:00
parent 584bb023de
commit 846624cec5

View File

@ -4,7 +4,9 @@
<script type="text/javascript"> <script type="text/javascript">
setInterval(function() { setInterval(function() {
window.location.reload(true); if (!document.hasFocus() ) {
window.location.reload(true);
}
}, 2*60000); //NOTE: period is passed in milliseconds }, 2*60000); //NOTE: period is passed in milliseconds
</script> </script>