logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: c41dc5e8e96008d1adfe394a220a6a1f8fd00846
parent: d32e0364f9aa2d61080c53489996351d4bd7b1c4
Author: Eugen Rochko <eugen@zeonfederated.com>
Date:   Mon, 21 Nov 2016 10:55:49 +0100

Icon for desktop notifications

Diffstat:

Mapp/assets/javascripts/components/actions/notifications.jsx2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/assets/javascripts/components/actions/notifications.jsx b/app/assets/javascripts/components/actions/notifications.jsx @@ -37,7 +37,7 @@ export function updateNotifications(notification, intlMessages, intlLocale) { const title = new IntlMessageFormat(intlMessages[`notification.${notification.type}`], intlLocale).format({ name: notification.account.display_name.length > 0 ? notification.account.display_name : notification.account.username }); const body = $('<p>').html(notification.status ? notification.status.content : '').text(); - new Notification(title, { body }); + new Notification(title, { body, icon: notification.account.avatar }); }; };