deco - expect icon uris with spaces

This commit is contained in:
Johannes Rieken 2017-10-11 10:51:48 +02:00
parent eac4d3c749
commit 00f0766b0f

View file

@ -148,7 +148,7 @@ export class IconLabel {
this.descriptionNode.empty = !description;
if (options && options.extraIcon) {
this.element.style.backgroundImage = `url(${options.extraIcon.toString(true)})`;
this.element.style.backgroundImage = `url("${options.extraIcon.toString(true)}")`;
this.element.style.backgroundRepeat = 'no-repeat';
this.element.style.backgroundPosition = 'right center';
this.element.style.paddingRight = '20px';