[chore/frontend] remove references to unused bundle.js (#1128)

This commit is contained in:
tobi 2022-11-23 15:32:57 +01:00 committed by GitHub
commit 1281a9fd4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 21 deletions

View file

@ -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"},
})
}