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