Fixed bg setting issue

This commit is contained in:
Maxim Stewart 2018-04-22 04:21:14 -05:00
parent 1008f4d093
commit e3f4f5bde9
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ function updateHTMLDirList(returnData) {
}
// Setup background if there is a 000.* in selection
var bgImgPth = images[0].children[0].innerHTML;
var bgImgPth = images[0] ? images[0].children[0].innerHTML : "";
if (bgImgPth.match(/000\.(jpg|png|gif)\b/) != null) {
updateBG(path + bgImgPth);
} else {