Oh right, after browser

This commit is contained in:
DutchEllie 2022-05-14 18:31:43 +02:00
parent d5e553852b
commit e2fff3a30d

View File

@ -21,10 +21,6 @@ var (
) )
func main() { func main() {
ApiURL = os.Getenv("APIURL")
if ApiURL == "" {
log.Fatalln("Unable to get API URL from environment variables!")
}
homepage := NewHomepage() homepage := NewHomepage()
aboutpage := NewAboutPage() aboutpage := NewAboutPage()
galaxiespage := NewGalaxiesPage() galaxiespage := NewGalaxiesPage()
@ -44,6 +40,11 @@ func main() {
// It exits immediately on the server side // It exits immediately on the server side
app.RunWhenOnBrowser() app.RunWhenOnBrowser()
ApiURL = os.Getenv("APIURL")
if ApiURL == "" {
log.Fatalln("Unable to get API URL from environment variables!")
}
icon := &app.Icon{ icon := &app.Icon{
Default: "/web/static/images/icon-small.png", Default: "/web/static/images/icon-small.png",
Large: "/web/static/images/icon.png", Large: "/web/static/images/icon.png",