Add warning when using external assets
This commit is contained in:
@@ -4,10 +4,17 @@ package assets
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
"sync"
|
||||||
|
|
||||||
"github.com/deluan/navidrome/consts"
|
"github.com/deluan/navidrome/consts"
|
||||||
|
"github.com/deluan/navidrome/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var once sync.Once
|
||||||
|
|
||||||
func AssetFile() http.FileSystem {
|
func AssetFile() http.FileSystem {
|
||||||
|
once.Do(func() {
|
||||||
|
log.Warn("Using external assets from " + consts.UIAssetsLocalPath)
|
||||||
|
})
|
||||||
return http.Dir(consts.UIAssetsLocalPath)
|
return http.Dir(consts.UIAssetsLocalPath)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user