From 1281a9fd4ab78928cbdc5ac116358ba328015bf9 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Wed, 23 Nov 2022 15:32:57 +0100 Subject: [chore/frontend] remove references to unused bundle.js (#1128) --- internal/web/profile.go | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'internal/web/profile.go') diff --git a/internal/web/profile.go b/internal/web/profile.go index 5023fa238..8a0368a3c 100644 --- a/internal/web/profile.go +++ b/internal/web/profile.go @@ -110,9 +110,9 @@ func (m *Module) profileGETHandler(c *gin.Context) { } stylesheets := []string{ - "/assets/Fork-Awesome/css/fork-awesome.min.css", - "/assets/dist/status.css", - "/assets/dist/profile.css", + assetsPathPrefix + "/Fork-Awesome/css/fork-awesome.min.css", + distPathPrefix + "/status.css", + distPathPrefix + "/profile.css", } if config.GetAccountsAllowCustomCSS() { stylesheets = append(stylesheets, "/@"+account.Username+"/custom.css") @@ -128,10 +128,7 @@ func (m *Module) profileGETHandler(c *gin.Context) { "statuses_next": statusResp.NextLink, "show_back_to_top": showBackToTop, "stylesheets": stylesheets, - "javascript": []string{ - "/assets/dist/bundle.js", - "/assets/dist/frontend.js", - }, + "javascript": []string{distPathPrefix + "/frontend.js"}, }) } -- cgit v1.2.3