New API for replacing an icon

This commit is contained in:
Robin Ward
2017-09-15 13:54:47 -04:00
parent ad77634854
commit e4e27a4b83
3 changed files with 22 additions and 4 deletions

View File

@ -30,6 +30,9 @@ const REPLACEMENTS = {
'notification.group_message_summary': "group"
};
export function replaceIcon(source, destination) {
REPLACEMENTS[source] = destination;
}
export function renderIcon(renderType, id, params) {
for (let i=0; i<_renderers.length; i++) {