mirror of https://github.com/VERT-sh/VERT.git
				
				
				
			fix: vertd not working until you go to settings
This commit is contained in:
		
							parent
							
								
									96329c6d96
								
							
						
					
					
						commit
						b938dd0578
					
				|  | @ -14,6 +14,7 @@ | ||||||
| 		effects, | 		effects, | ||||||
| 		theme, | 		theme, | ||||||
| 		dropping, | 		dropping, | ||||||
|  | 		vertdLoaded, | ||||||
| 	} from "$lib/store/index.svelte"; | 	} from "$lib/store/index.svelte"; | ||||||
| 	import "../app.scss"; | 	import "../app.scss"; | ||||||
| 
 | 
 | ||||||
|  | @ -60,6 +61,12 @@ | ||||||
| 		); | 		); | ||||||
| 
 | 
 | ||||||
| 		Settings.instance.load(); | 		Settings.instance.load(); | ||||||
|  | 
 | ||||||
|  | 		fetch(`${Settings.instance.settings.vertdURL}/api/version`).then( | ||||||
|  | 			(res) => { | ||||||
|  | 				if (res.ok) $vertdLoaded = true; | ||||||
|  | 			}, | ||||||
|  | 		); | ||||||
| 	}); | 	}); | ||||||
| 
 | 
 | ||||||
| 	$effect(() => { | 	$effect(() => { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue