Fix manifest and service worker 500 error

Former-commit-id: 3349898a697415017f700057c22872214b34c05a [formerly 2cf9e28204960e7fc0d0f53f717623c9e342636a] [formerly 688f8e83ac92c85a1e151f485b2ead262c6263f8 [formerly 33ff14d425]]
Former-commit-id: 6805205a6844fc5be98b8592d2478aebbb19a92a [formerly 06de59aa7ab360da2a97d31d9d9dcb6c8a0c661a]
Former-commit-id: 7fad0900cdbb2cc9395d9799d2e9c3e4217b2c01
pull/726/head
Henrique Dias 2017-07-18 16:16:52 +01:00
parent ecc349fce2
commit 2724ebbd41
1 changed files with 2 additions and 2 deletions

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