diff --git a/http.go b/http.go index 4e41d245..0c422679 100644 --- a/http.go +++ b/http.go @@ -34,7 +34,7 @@ func serveHTTP(c *RequestContext, w http.ResponseWriter, r *http.Request) (int, if r.URL.Path == "/sw.js" { return renderFile( w, - c.FM.assets.MustString(r.URL.Path), + c.FM.assets.MustString("sw.js"), "application/javascript", c, ) @@ -80,7 +80,7 @@ func staticHandler(c *RequestContext, w http.ResponseWriter, r *http.Request) (i return renderFile( w, - c.FM.assets.MustString(r.URL.Path), + c.FM.assets.MustString("static/manifest.json"), "application/json", c, )