From d3cc6cf68f24b16dc305422f9ecce79fcd9d2bef Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sun, 15 Oct 2017 00:10:53 +0200 Subject: [PATCH] Bug: Custom image are not displayed in properties window --- src/js/properties.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/js/properties.js b/src/js/properties.js index 0f26096..57ff7c1 100644 --- a/src/js/properties.js +++ b/src/js/properties.js @@ -17,9 +17,12 @@ app.init = function(){ switch(node.type){ case app.GridNodes.GridNodeType.folder: Url.parentNode.parentNode.style.display = 'none'; - if(node.image) Image = node.image; - else Image = app.settings.grid.folderIcon; - ImagePreview.style.backgroundImage = 'url(' + Image + ')'; + if(node.image){ + if(node.image.indexOf('url(')>0) Image = node.image; + else Image = 'url(' + node.image + ')'; + } else Image = app.settings.grid.folderIcon; + + ImagePreview.style.backgroundImage = Image; break; case app.GridNodes.GridNodeType.bookmark: Url.value = node.url;