From eee1f3190355224eef63a4dcdef8c36eb3ca3738 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Mon, 3 Sep 2018 14:26:40 -0700 Subject: Refactor HTTP context handling --- ui/static_manifest.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'ui/static_manifest.go') diff --git a/ui/static_manifest.go b/ui/static_manifest.go index f8f6ac0..51369a2 100644 --- a/ui/static_manifest.go +++ b/ui/static_manifest.go @@ -2,12 +2,12 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/ui" import ( "net/http" - "miniflux.app/http/context" + "miniflux.app/http/request" "miniflux.app/http/response/json" "miniflux.app/http/route" "miniflux.app/model" @@ -32,9 +32,7 @@ func (c *Controller) WebManifest(w http.ResponseWriter, r *http.Request) { BackgroundColor string `json:"background_color"` } - ctx := context.New(r) - themeColor := model.ThemeColor(ctx.UserTheme()) - + themeColor := model.ThemeColor(request.UserTheme(r)) manifest := &webManifest{ Name: "Miniflux", ShortName: "Miniflux", -- cgit v1.2.3