aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2020-08-22 06:38:59 +0000
committerr <r@freesoftwareextremist.com>2020-08-22 06:41:49 +0000
commit798587868f66284439344f02ff88e0ead3848524 (patch)
treed2308ee4cec3c76f550e1ea78f487f0fce7bc862 /main.go
parent61020d8837745f4b1632bd31e54017abeff7862a (diff)
downloadbloat-798587868f66284439344f02ff88e0ead3848524.tar.gz
bloat-798587868f66284439344f02ff88e0ead3848524.zip
Fix invalid CSS syntax
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
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
}