From e3f4f5bde9aa5640e9d677cbbccd0eb6e7dae32e Mon Sep 17 00:00:00 2001 From: Maxim Stewart Date: Sun, 22 Apr 2018 04:21:14 -0500 Subject: [PATCH] Fixed bg setting issue --- resources/js/xmlParser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/xmlParser.js b/resources/js/xmlParser.js index 67d80ae..bca1048 100644 --- a/resources/js/xmlParser.js +++ b/resources/js/xmlParser.js @@ -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 {