logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: 51f1f05b2d17ac1b1471d84481683909c61c373e
parent c25170d7d9cb35d7209a63628905136e5fcab80a
Author: Henry Jameson <me@hjkos.com>
Date:   Wed, 22 Nov 2023 22:06:56 +0200

use last favicon instead of first for consistency with browsers

Diffstat:

Msrc/services/notification_utils/notification_utils.js3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/services/notification_utils/notification_utils.js b/src/services/notification_utils/notification_utils.js @@ -95,7 +95,8 @@ export const unseenNotificationsFromStore = store => { export const prepareNotificationObject = (notification, i18n) => { if (cachedBadgeUrl === null) { - const favicon = FaviconService.getOriginalFavicons()[0] + const favicons = FaviconService.getOriginalFavicons() + const favicon = favicons[favicons.length - 1] if (!favicon) { cachedBadgeUrl = 'about:blank' } else {