fix: incorrect javascript linking
2 files changed, 2 insertions(+), 2 deletions(-)
M internal/components/search.go → internal/components/search.go
@@ -96,7 +96,7 @@ ), g.Text("."), ), ), - script(tdata.Assets.ByPath["/static/search.js"]), + script(tdata.Assets.ByPath["/search.js"]), SearchForm(tdata, r), Section( ID("results"),
M internal/config/config.go → internal/config/config.go
@@ -142,7 +142,7 @@ DevMode = config.Web.Environment == "development" config.Web.ContentSecurityPolicy.ScriptSrc = append( config.Web.ContentSecurityPolicy.ScriptSrc, - config.Web.BaseURL.JoinPath("/static/").String(), + config.Web.BaseURL.String(), ) maps.DeleteFunc(config.Importer.Sources, func(_ string, v *Source) bool {