Fix manifest and service worker 500 error

This commit is contained in:
Henrique Dias 2017-07-18 16:16:52 +01:00
parent a8a18cdef1
commit 33ff14d425
No known key found for this signature in database
GPG Key ID: 936F5EB68D786730

View File

@ -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,
)