mirror of
				https://github.com/LonamiWebs/Telethon.git
				synced 2025-10-29 06:57:50 +03:00 
			
		
		
		
	Automatically redirect on documentation for exact matches
This commit is contained in:
		
							parent
							
								
									2fb42772c6
								
							
						
					
					
						commit
						1ad7712fde
					
				|  | @ -147,6 +147,7 @@ function updateSearch() { | |||
|         } else { | ||||
|             exactMatch.style.display = ""; | ||||
|             buildList(null, exactList, [destination, destinationu]); | ||||
|             return destinationu[0]; | ||||
|         } | ||||
|     } else { | ||||
|         contentDiv.style.display = ""; | ||||
|  | @ -169,4 +170,8 @@ if (query) { | |||
|     searchBox.value = query; | ||||
| } | ||||
| 
 | ||||
| updateSearch(); | ||||
| var exactUrl = updateSearch(); | ||||
| var redirect = getQuery('redirect'); | ||||
| if (exactUrl && redirect != 'no') { | ||||
|     window.location = exactUrl; | ||||
| } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user