mirror of
				https://github.com/brunofontes/shareit.git
				synced 2025-11-04 03:31:02 -03:00 
			
		
		
		
	Including home.blade -> hasFocus test
This commit is contained in:
		
							parent
							
								
									2f16d4dc60
								
							
						
					
					
						commit
						74eb254297
					
				@ -4,7 +4,9 @@
 | 
			
		||||
 | 
			
		||||
<script type="text/javascript">    
 | 
			
		||||
    setInterval(function() {
 | 
			
		||||
                  window.location.reload(true);
 | 
			
		||||
                  if (!document.hasFocus() ) {
 | 
			
		||||
                    window.location.reload(true);
 | 
			
		||||
                  }
 | 
			
		||||
                }, 2*60000); //NOTE: period is passed in milliseconds
 | 
			
		||||
</script>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user