mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 02:19:27 +08:00
FIX: Badge icons disappeared
This commit is contained in:
parent
41afd9c818
commit
1b1fd64639
|
@ -3,5 +3,5 @@ import { iconHTML } from 'discourse-common/lib/icon-library';
|
|||
|
||||
export default htmlHelper(function(str) {
|
||||
if (Ember.isEmpty(str)) { return ""; }
|
||||
return (str.indexOf('fa-') === 0) ? iconHTML(str) : `<img src='${str}'>`;
|
||||
return (str.indexOf('fa-') === 0) ? iconHTML(str.replace('fa-', '')) : `<img src='${str}'>`;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user