From 689e8f216c23940ca490198621b7e815a5724c08 Mon Sep 17 00:00:00 2001 From: Svilen Markov <7613769+svilenmarkov@users.noreply.github.com> Date: Wed, 23 Apr 2025 12:10:15 +0100 Subject: [PATCH] Rename function --- internal/glance/glance.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/glance/glance.go b/internal/glance/glance.go index e000f06..903cfbc 100644 --- a/internal/glance/glance.go +++ b/internal/glance/glance.go @@ -93,13 +93,13 @@ func newApplication(config *config) (*application, error) { config = &app.Config config.Server.BaseURL = strings.TrimRight(config.Server.BaseURL, "/") - config.Theme.CustomCSSFile = app.transformUserDefinedAssetPath(config.Theme.CustomCSSFile) - config.Branding.LogoURL = app.transformUserDefinedAssetPath(config.Branding.LogoURL) + config.Theme.CustomCSSFile = app.resolveUserDefinedAssetPath(config.Theme.CustomCSSFile) + config.Branding.LogoURL = app.resolveUserDefinedAssetPath(config.Branding.LogoURL) if config.Branding.FaviconURL == "" { config.Branding.FaviconURL = app.StaticAssetPath("favicon.png") } else { - config.Branding.FaviconURL = app.transformUserDefinedAssetPath(config.Branding.FaviconURL) + config.Branding.FaviconURL = app.resolveUserDefinedAssetPath(config.Branding.FaviconURL) } if config.Branding.AppName == "" { @@ -152,7 +152,7 @@ func (p *page) updateOutdatedWidgets() { wg.Wait() } -func (a *application) transformUserDefinedAssetPath(path string) string { +func (a *application) resolveUserDefinedAssetPath(path string) string { if strings.HasPrefix(path, "/assets/") { return a.Config.Server.BaseURL + path }