From c869ae5791be44834b8862562e8b4674c9a80f1c Mon Sep 17 00:00:00 2001 From: Tania B Date: Mon, 7 Dec 2020 12:23:53 +0200 Subject: [PATCH] Support svg embedded favicons in whitelabeling (#29436) * Fix favicon embedding in whitelabeling * Fix formatting --- pkg/api/dtos/index.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkg/api/dtos/index.go b/pkg/api/dtos/index.go index 79f2e859557..b404f32e31c 100644 --- a/pkg/api/dtos/index.go +++ b/pkg/api/dtos/index.go @@ -1,6 +1,10 @@ package dtos -import "github.com/grafana/grafana/pkg/setting" +import ( + "github.com/grafana/grafana/pkg/setting" + + "html/template" +) type IndexViewData struct { User *CurrentUser @@ -17,8 +21,8 @@ type IndexViewData struct { NewGrafanaVersion string AppName string AppNameBodyClass string - FavIcon string - AppleTouchIcon string + FavIcon template.URL + AppleTouchIcon template.URL AppTitle string Sentry *setting.Sentry }