Skip to content

Commit 0d1505f

Browse files
committed
fix: support building with go1.18
1 parent e4d378a commit 0d1505f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/serve.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func Register(r *mux.Router) {
2222
r.Handle("/manifest.json", serveFile("manifest.json", "application/json"))
2323
r.Handle("/service-worker.js", serveFile("service-worker.js", "text/javascript"))
2424
r.Handle("/asset-manifest.json", serveFile("asset-manifest.json", "application/json"))
25-
r.Handle("/static/{type}/{resource}", http.FileServerFS(buildDir))
25+
r.Handle("/static/{type}/{resource}", http.FileServer(http.FS(buildDir)))
2626

2727
r.Handle("/favicon.ico", serveFile("favicon.ico", "image/x-icon"))
2828
for _, size := range []string{"16x16", "32x32", "192x192", "256x256"} {

0 commit comments

Comments
 (0)