File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ const URL_ORIGIN = location.origin + location.pathname,
48
48
VERSION = packageJson . version ;
49
49
50
50
const AUTOHIDE_DELAY = 500 , // delay for triggering front panel auto-collapse (in milliseconds)
51
- BG_DIRECTORY = 'backgrounds' , // server folder name for built-in backgrounds
51
+ BG_DIRECTORY = 'backgrounds/ ' , // server folder name for built-in backgrounds (must end with a slash!)
52
52
MAX_METADATA_REQUESTS = 4 , // max concurrent metadata requests
53
53
MAX_QUEUED_SONGS = 2000 ,
54
54
NEXT_TRACK = - 1 ; // for loadSong()
@@ -3250,9 +3250,9 @@ async function retrieveBackgrounds() {
3250
3250
for ( const { url, file } of fileExplorer . parseWebIndex ( content ) ) {
3251
3251
const name = parsePath ( file ) . baseName ;
3252
3252
if ( imageExtensions . test ( file ) )
3253
- bgImages . push ( { name, url : BG_DIRECTORY + '/' + url } ) ;
3253
+ bgImages . push ( { name, url : BG_DIRECTORY + url } ) ;
3254
3254
else if ( videoExtensions . test ( file ) )
3255
- bgVideos . push ( { name, url : BG_DIRECTORY + '/' + url } ) ;
3255
+ bgVideos . push ( { name, url : BG_DIRECTORY + url } ) ;
3256
3256
}
3257
3257
}
3258
3258
catch ( e ) { } // fail silently (possibly directory not found on server)
You can’t perform that action at this time.
0 commit comments