Commit 45a0c7c7 by Matjaz Gregoric

Don't set backgroundImage if none defined.

This fixes a bug where the default background image
would not display if a custom image hasn't been set.
parent 59a74557
......@@ -88,7 +88,9 @@
h('div.close.icon-remove-sign.fa-times-circle'),
h('p.popup-content', {innerHTML: ctx.popup_html})
]),
h('div.target-img', {style: {backgroundImage: 'url(' + ctx.target_img_src + ')'}},
h('div.target-img', {style: {backgroundImage: ctx.target_img_src ?
'url(' + ctx.target_img_src + ')' :
undefined}},
renderCollection(zoneTemplate, ctx.zones, ctx))
]),
h('div.clear')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment