Browse Source

Disable unread notifications in window title

feature_disable_tab_notifier
kɜ:ʳ cybredragon 2 years ago
parent
commit
03f1abe3b9
  1. 10
      app/javascript/mastodon/features/ui/components/document_title.js

10
app/javascript/mastodon/features/ui/components/document_title.js

@ -23,15 +23,7 @@ class DocumentTitle extends PureComponent {
}
_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 () {

Loading…
Cancel
Save