Oh right, after browser
continuous-integration/drone/push Build is passing Details

This commit is contained in:
DutchEllie 2022-05-14 18:31:43 +02:00
parent 98a4b28e8b
commit 450bf3631c
Signed by: DutchEllie
SSH Key Fingerprint: SHA256:dKq6ZSgN5E3Viqrw/+xAdf2VdR6hdRGNyrYqXXwfjTY
1 changed files with 5 additions and 4 deletions

View File

@ -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",