Fix bugu s location.hash (v chromu) #1557
This commit is contained in:
		
							parent
							
								
									4912349577
								
							
						
					
					
						commit
						66ec9bb33f
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -38,7 +38,11 @@ | |||
| 
 | ||||
|   window.addEventListener("load", _ => { | ||||
|     update_all({}, true, _ => { | ||||
|       if (location.hash !== "") location.hash = location.hash; // Po rozházení korektur sescrollujeme na kotvu v URL | ||||
|       if (location.hash !== "") { // Po rozházení korektur sescrollujeme na kotvu v URL | ||||
|         const h = location.hash.substring(1); | ||||
|         location.hash = "HACK"; | ||||
|         location.hash = h; | ||||
|       } | ||||
|     }); | ||||
|   }); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue