fix badge

This commit is contained in:
Henry Jameson 2023-11-20 00:19:51 +02:00
parent 1931e7c3ba
commit 37e3a23f2a

View File

@ -90,12 +90,10 @@ export const unseenNotificationsFromStore = store => {
export const prepareNotificationObject = (notification, i18n) => {
if (cachedBadgeUrl === null) {
const favicon = FaviconService.getOriginalFavicons()[0]
console.log('TEST FAVICON', favicon)
if (!favicon) {
cachedBadgeUrl = 'about:blank'
} else {
cachedBadgeUrl = favicon.favimg.href
console.log('TEST FAVICON', cachedBadgeUrl)
cachedBadgeUrl = favicon.favimg.src
}
}