all repos — searchix @ e0bbccf0b9c5e43bfa2ef02a5bb33c27b8bf5d00

Search engine for NixOS, nix-darwin, home-manager and NUR users

fix: incorrect javascript linking

Alan Pearce
commit

e0bbccf0b9c5e43bfa2ef02a5bb33c27b8bf5d00

parent

5cc6ab750051e5afc26b945327c73709de20b107

2 files changed, 2 insertions(+), 2 deletions(-)

changed files
M internal/components/search.gointernal/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.gointernal/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 {