frontend: react to hash changes
This commit is contained in:
		
							parent
							
								
									7298fea65d
								
							
						
					
					
						commit
						db83b1cb02
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -15,7 +15,11 @@ | |||
|     finalSelect = true; | ||||
|   } | ||||
| 
 | ||||
|   const hash = window.location.hash.substr(1); | ||||
|   // react to hash changes | ||||
|   let hash = window.location.hash.substr(1); | ||||
|   window.onhashchange = () => { | ||||
| 	hash = window.location.hash.substr(1); | ||||
|   } | ||||
| </script> | ||||
| 
 | ||||
| <style> | ||||
|  |  | |||
		Reference in a new issue