fix favicon logic
This commit is contained in:
parent
7f5bea8f5b
commit
c384bd8fff
|
@ -8,10 +8,10 @@ export function notificationObservers (store) {
|
|||
if (!process.browser) {
|
||||
return
|
||||
}
|
||||
if (currentFaviconHasNotifications === hasNotifications) {
|
||||
return
|
||||
}
|
||||
scheduleIdleTask(() => {
|
||||
if (currentFaviconHasNotifications === hasNotifications) {
|
||||
return
|
||||
}
|
||||
setFavicon(hasNotifications ? '/favicon-alert.png' : '/favicon.png')
|
||||
currentFaviconHasNotifications = !currentFaviconHasNotifications
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue