mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-23 20:28:06 +01:00
Fix crashes from favico.js crashing the entire web app
This commit is contained in:
parent
956c1cf82a
commit
79725f659d
1 changed files with 5 additions and 1 deletions
|
@ -366,7 +366,11 @@ class UI extends React.Component {
|
|||
if (this.props.unreadNotifications != prevProps.unreadNotifications ||
|
||||
this.props.showFaviconBadge != prevProps.showFaviconBadge) {
|
||||
if (this.favicon) {
|
||||
try {
|
||||
this.favicon.badge(this.props.showFaviconBadge ? this.props.unreadNotifications : 0);
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue