Add warning when using external assets

This commit is contained in:
Deluan 2020-01-24 20:35:20 -05:00
parent 9af536ba64
commit f63b1703e6

View File

@ -4,10 +4,17 @@ package assets
import (
"net/http"
"sync"
"github.com/deluan/navidrome/consts"
"github.com/deluan/navidrome/log"
)
var once sync.Once
func AssetFile() http.FileSystem {
once.Do(func() {
log.Warn("Using external assets from " + consts.UIAssetsLocalPath)
})
return http.Dir(consts.UIAssetsLocalPath)
}