From 51f1f05b2d17ac1b1471d84481683909c61c373e Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 22 Nov 2023 22:06:56 +0200 Subject: [PATCH] use last favicon instead of first for consistency with browsers --- src/services/notification_utils/notification_utils.js | 3 ++- 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 index 5ec98d9f..7b705e65 100644 --- 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 {