Skip to content

Commit

Permalink
fix double script inclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
maxence-charriere committed Jun 27, 2023
1 parent 9b47482 commit d5278db
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions pkg/app/http.go
Expand Up @@ -856,23 +856,6 @@ func (h *Handler) servePage(w http.ResponseWriter, r *http.Request) {

return link
}),
Range(h.Styles).Slice(func(i int) UI {
url, crossOrigin, _ := parseSrc(h.Styles[i])
if url == "" {
return nil
}

link := Link().
Type("text/css").
Rel("stylesheet").
Href(url)

if crossOrigin != "" {
link = link.CrossOrigin(strings.Trim(crossOrigin, "true"))
}

return link
}),
Script().
Defer(true).
Src(h.resolvePackagePath("/wasm_exec.js")),
Expand Down

0 comments on commit d5278db

Please sign in to comment.