mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-14 03:07:24 +03:00
Add warning when using external assets
This commit is contained in:
parent
9af536ba64
commit
f63b1703e6
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user