mirror of
				https://github.com/smartfrigde/armcord.git
				synced 2024-08-14 23:56:58 +00:00 
			
		
		
		
	fix: settings and info not appearing (#507)
Query the right element to get the info div
This commit is contained in:
		
							parent
							
								
									fa9049c7b2
								
							
						
					
					
						commit
						641af3be13
					
				
					 1 changed files with 1 additions and 4 deletions
				
			
		|  | @ -73,10 +73,7 @@ sleep(5000).then(async () => { | ||||||
| 
 | 
 | ||||||
| // Settings info version injection
 | // Settings info version injection
 | ||||||
| setInterval(() => { | setInterval(() => { | ||||||
|     // @ts-expect-error
 |     const host = document.querySelector('[class*="sidebar"] [class*="info"]'); | ||||||
|     const host = [...document.querySelectorAll('[class*="sidebar"] [class*="info"] [class*="line"]')].find((x) => |  | ||||||
|         x.textContent.startsWith("Host ") |  | ||||||
|     ); |  | ||||||
|     if (!host || host.querySelector("#ac-ver")) { |     if (!host || host.querySelector("#ac-ver")) { | ||||||
|         return; |         return; | ||||||
|     } |     } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue