Browse Source

Stop escaping icons in the IconLoader. This is probably overkill anyway.

We only need to escape the user-supplied title possibly at worst.
Fixes #225
pull/3202/head
TheGoddessInari 5 years ago
parent
commit
b42bfb80ba
No known key found for this signature in database
GPG Key ID: 1209B1B7632D69A
  1. 4
      app/util/IconLoader.js

4
app/util/IconLoader.js

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

Loading…
Cancel
Save