forked from cybrespace/mastodon
Disable unread notifications in window title
This commit is contained in:
parent
c4118ba71b
commit
8dd00194a8
|
@ -23,15 +23,7 @@ class DocumentTitle extends PureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
_sideEffects () {
|
_sideEffects () {
|
||||||
const { unread } = this.props;
|
document.title = title;
|
||||||
|
|
||||||
if (unread > 99) {
|
|
||||||
document.title = `(*) ${title}`;
|
|
||||||
} else if (unread > 0) {
|
|
||||||
document.title = `(${unread}) ${title}`;
|
|
||||||
} else {
|
|
||||||
document.title = title;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
render () {
|
render () {
|
||||||
|
|
Loading…
Reference in New Issue