You've already forked filebrowser
mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-11-26 14:25:26 +08:00
Fix manifest and service worker 500 error
This commit is contained in:
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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user