|
|
@ -366,7 +366,11 @@ class UI extends React.Component { |
|
|
|
if (this.props.unreadNotifications != prevProps.unreadNotifications || |
|
|
|
if (this.props.unreadNotifications != prevProps.unreadNotifications || |
|
|
|
this.props.showFaviconBadge != prevProps.showFaviconBadge) { |
|
|
|
this.props.showFaviconBadge != prevProps.showFaviconBadge) { |
|
|
|
if (this.favicon) { |
|
|
|
if (this.favicon) { |
|
|
|
|
|
|
|
try { |
|
|
|
this.favicon.badge(this.props.showFaviconBadge ? this.props.unreadNotifications : 0); |
|
|
|
this.favicon.badge(this.props.showFaviconBadge ? this.props.unreadNotifications : 0); |
|
|
|
|
|
|
|
} catch (err) { |
|
|
|
|
|
|
|
console.error(err); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|