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