forked from MapComplete/MapComplete
		
	Reload page on 'clear caches'
This commit is contained in:
		
							parent
							
								
									bce8ac42a5
								
							
						
					
					
						commit
						ef16058249
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -5,6 +5,7 @@
 | 
				
			||||||
  function clearCaches() {
 | 
					  function clearCaches() {
 | 
				
			||||||
    IdbLocalStorage.clearAll()
 | 
					    IdbLocalStorage.clearAll()
 | 
				
			||||||
    Utils.download("./service-worker-clear")
 | 
					    Utils.download("./service-worker-clear")
 | 
				
			||||||
 | 
					    window.location.reload()
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  export let msg: string
 | 
					  export let msg: string
 | 
				
			||||||
</script>
 | 
					</script>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue