fallback to old notification method, don't spam if old way of creating
notification fails, try to use favicon
This commit is contained in:
parent
1b7e930b2e
commit
0628aac664
4 changed files with 27 additions and 10 deletions
|
|
@ -76,8 +76,12 @@ export const unseenNotificationsFromStore = store =>
|
|||
filter(filteredNotificationsFromStore(store), ({ seen }) => !seen)
|
||||
|
||||
export const prepareNotificationObject = (notification, i18n) => {
|
||||
const nodes = document.querySelectorAll('link[rel="icon"]')
|
||||
const icon = nodes[0].href
|
||||
|
||||
const notifObj = {
|
||||
tag: notification.id
|
||||
tag: notification.id,
|
||||
icon
|
||||
}
|
||||
const status = notification.status
|
||||
const title = notification.from_profile.name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue