aboutsummaryrefslogtreecommitdiff
path: root/ui/static_stylesheet.go
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <f@miniflux.net> 2021-02-17 21:58:04 -0800
committerGravatar fguillot <f@miniflux.net> 2021-02-17 22:07:28 -0800
commit9569666259a71d12438d4484ce9fc43309fea99c (patch)
tree697a9effbf62c0ee3c81729d3ea1ea60d213cfab /ui/static_stylesheet.go
parent42edd357bc5622b56f93b658a270ecb6918a0137 (diff)
downloadv2-9569666259a71d12438d4484ce9fc43309fea99c.tar.gz
v2-9569666259a71d12438d4484ce9fc43309fea99c.tar.zst
v2-9569666259a71d12438d4484ce9fc43309fea99c.zip
Use embed package for CSS bundles instead of generated files
Diffstat (limited to 'ui/static_stylesheet.go')
-rw-r--r--ui/static_stylesheet.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/static_stylesheet.go b/ui/static_stylesheet.go
index dd9b0e3e..fc8ae15b 100644
--- a/ui/static_stylesheet.go
+++ b/ui/static_stylesheet.go
@@ -29,7 +29,7 @@ func (h *handler) showStylesheet(w http.ResponseWriter, r *http.Request) {
return
}
- etag, found := static.StylesheetsChecksums[filename]
+ etag, found := static.StylesheetBundleChecksums[filename]
if !found {
html.NotFound(w, r)
return
@@ -37,7 +37,7 @@ func (h *handler) showStylesheet(w http.ResponseWriter, r *http.Request) {
response.New(w, r).WithCaching(etag, 48*time.Hour, func(b *response.Builder) {
b.WithHeader("Content-Type", "text/css; charset=utf-8")
- b.WithBody(static.Stylesheets[filename])
+ b.WithBody(static.StylesheetBundles[filename])
b.Write()
})
}