From 798587868f66284439344f02ff88e0ead3848524 Mon Sep 17 00:00:00 2001 From: r Date: Sat, 22 Aug 2020 06:38:59 +0000 Subject: Fix invalid CSS syntax --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index 3b000c7..87be0d2 100644 --- a/main.go +++ b/main.go @@ -75,7 +75,7 @@ func main() { appRepo := repo.NewAppRepo(appDB) customCSS := config.CustomCSS - if !strings.HasPrefix(customCSS, "http://") && + if len(customCSS) > 0 && !strings.HasPrefix(customCSS, "http://") && !strings.HasPrefix(customCSS, "https://") { customCSS = "/static/" + customCSS } -- cgit v1.2.3