From e76a64dda173db84e34eefc6baaa2981fe4a6801 Mon Sep 17 00:00:00 2001 From: John Olheiser <42128690+jolheiser@users.noreply.github.com> Date: Mon, 17 Feb 2020 17:11:59 -0600 Subject: Inject SVG sprite via ajax (#10320) * AJAX SVG * Fix PWA * Remove unused PWA assets Signed-off-by: jolheiser Co-Authored-by: silverwind --- modules/templates/helper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/templates/helper.go b/modules/templates/helper.go index 30ca9c1638..a97431a69e 100644 --- a/modules/templates/helper.go +++ b/modules/templates/helper.go @@ -287,7 +287,7 @@ func NewFuncMap() []template.FuncMap { return false }, "svg": func(icon string, size int) template.HTML { - return template.HTML(fmt.Sprintf(``, icon, size, size, setting.StaticURLPrefix, icon)) + return template.HTML(fmt.Sprintf(``, icon, size, size, icon)) }, }} } -- cgit v1.2.3