diff --git a/app/theme/wp/customheader.go b/app/theme/wp/customheader.go index a650893..4711238 100644 --- a/app/theme/wp/customheader.go +++ b/app/theme/wp/customheader.go @@ -122,7 +122,7 @@ func CustomVideo(h *Handle, scene ...string) (ok bool) { logs.Error(err, "get headerVideo fail", mod.HeaderVideo) return } - scripts := []string{ + scriptss := []string{ "/wp-includes/js/dist/vendor/wp-polyfill-inert.min.js", "/wp-includes/js/dist/vendor/regenerator-runtime.min.js", "/wp-includes/js/dist/vendor/wp-polyfill.min.js", @@ -132,11 +132,11 @@ func CustomVideo(h *Handle, scene ...string) (ok bool) { "/wp-includes/js/dist/a11y.min.js", "/wp-includes/js/wp-custom-header.min.js", } - scripts = slice.Map(scripts, func(t string) string { + scriptss = slice.Map(scriptss, func(t string) string { return fmt.Sprintf(` -`, t, str.Replaces(t, [][]string{{ +`, t, str.Replaces(t, []string{ "/wp-includes/js/dist/vendor/", "/wp-includes/js/dist/", "/wp-includes/js/", ".min.js", ".js", "wp-", "", - }})) + })) }) var tr = `