Browse Source

Use string template literal for IconLoader.

pull/3202/head
TheGoddessInari 6 years ago
parent
commit
cc3398fc1f
No known key found for this signature in database
GPG Key ID: 1209B1B7632D69A
  1. 2
      app/util/IconLoader.js

2
app/util/IconLoader.js

@ -39,7 +39,7 @@ Ext.define('Hamsket.util.IconLoader', {
return bg.slice(5, -2);
})();`).then(function (backgroundImage) {
if (backgroundImage) {
service.setTitle('<img src="'+backgroundImage+'" width="" style="background-color: white;border-radius: 50%;position: absolute;left: 18px;top: 17px;width: 12px;">'+service.title);
service.setTitle(`<img src="${backgroundImage}" width="" style="background-color: white;border-radius: 50%;position: absolute;left: 18px;top: 17px;width: 12px;">`+service.title);
service.fireEvent('iconchange', service, backgroundImage, service.icon);
}
return true;

Loading…
Cancel
Save