use last favicon instead of first for consistency with browsers

This commit is contained in:
Henry Jameson 2023-11-22 22:06:56 +02:00
parent c25170d7d9
commit 51f1f05b2d

View File

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