We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96a818d commit bb7b7f7Copy full SHA for bb7b7f7
modules/public/public.go
@@ -32,16 +32,8 @@ func CustomAssets() *assetfs.Layer {
32
return assetfs.Local("custom", setting.CustomPath, "public")
33
}
34
35
-func StaticAssets() *assetfs.Layer {
36
- return assetfs.Local("static", setting.StaticRootPath, "public")
37
-}
38
-
39
func AssetFS() *assetfs.LayeredFS {
40
- if setting.HasBuiltinBindata {
41
- return assetfs.Layered(CustomAssets(), StaticAssets(), BuiltinAssets()) // old behavior: always include StaticAssets
42
- } else {
43
- return assetfs.Layered(CustomAssets(), BuiltinAssets()) // now BuiltinAssets is StaticAssets
44
- }
+ return assetfs.Layered(CustomAssets(), BuiltinAssets())
45
46
47
// AssetsHandlerFunc implements the static handler for serving custom or original assets.
0 commit comments