Merge branch 'notifications-thru-sw' into shigusegubu-vue3

This commit is contained in:
Henry Jameson 2023-10-26 15:48:13 +03:00
commit 3693dde1d5

View file

@ -77,11 +77,11 @@ export const unseenNotificationsFromStore = store =>
export const prepareNotificationObject = (notification, i18n) => { export const prepareNotificationObject = (notification, i18n) => {
const nodes = document.querySelectorAll('link[rel="icon"]') const nodes = document.querySelectorAll('link[rel="icon"]')
const icon = nodes[0].href const badge = nodes[0].href
const notifObj = { const notifObj = {
tag: notification.id, tag: notification.id,
icon badge
} }
const status = notification.status const status = notification.status
const title = notification.from_profile.name const title = notification.from_profile.name