From: Eugen Rochko Date: Mon, 21 Nov 2016 09:55:49 +0000 (+0100) Subject: Icon for desktop notifications X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=c41dc5e8e96008d1adfe394a220a6a1f8fd00846;p=mastodon.git Icon for desktop notifications --- diff --git a/app/assets/javascripts/components/actions/notifications.jsx b/app/assets/javascripts/components/actions/notifications.jsx index b34fc7289..97551ebf7 100644 --- 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 = $('

').html(notification.status ? notification.status.content : '').text(); - new Notification(title, { body }); + new Notification(title, { body, icon: notification.account.avatar }); }; };