mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 08:34:33 +08:00
7 lines
252 B
Plaintext
7 lines
252 B
Plaintext
|
import { registerUnbound } from 'discourse-common/lib/helpers';
|
||
|
import { renderIcon } from 'discourse-common/lib/icon-library';
|
||
|
|
||
|
registerUnbound('d-icon', function(id, params) {
|
||
|
return new Handlebars.SafeString(renderIcon('string', id, params));
|
||
|
});
|