mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
Fix manifest and service worker 500 error
This commit is contained in:
parent
a8a18cdef1
commit
33ff14d425
4
http.go
4
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,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user