mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2026-10-19 08:13:40 +00:00
feature (debug): improve debug mode
This commit is contained in:
@@ -19,8 +19,9 @@ var (
|
||||
var EmbedPluginList []byte
|
||||
|
||||
func init() {
|
||||
if !DEBUG {
|
||||
fsPublic, _ := fs.Sub(wwwPublic, "public")
|
||||
WWWPublic = http.FS(fsPublic)
|
||||
if _, err := os.Stat("./public/"); DEBUG && err == nil {
|
||||
return
|
||||
}
|
||||
fsPublic, _ := fs.Sub(wwwPublic, "public")
|
||||
WWWPublic = http.FS(fsPublic)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user