Oh right, after browser
This commit is contained in:
		
							parent
							
								
									d5e553852b
								
							
						
					
					
						commit
						e2fff3a30d
					
				@ -21,10 +21,6 @@ var (
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func main() {
 | 
			
		||||
	ApiURL = os.Getenv("APIURL")
 | 
			
		||||
	if ApiURL == "" {
 | 
			
		||||
		log.Fatalln("Unable to get API URL from environment variables!")
 | 
			
		||||
	}
 | 
			
		||||
	homepage := NewHomepage()
 | 
			
		||||
	aboutpage := NewAboutPage()
 | 
			
		||||
	galaxiespage := NewGalaxiesPage()
 | 
			
		||||
@ -44,6 +40,11 @@ func main() {
 | 
			
		||||
	// It exits immediately on the server side
 | 
			
		||||
	app.RunWhenOnBrowser()
 | 
			
		||||
 | 
			
		||||
	ApiURL = os.Getenv("APIURL")
 | 
			
		||||
	if ApiURL == "" {
 | 
			
		||||
		log.Fatalln("Unable to get API URL from environment variables!")
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	icon := &app.Icon{
 | 
			
		||||
		Default: "/web/static/images/icon-small.png",
 | 
			
		||||
		Large:   "/web/static/images/icon.png",
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user