diff --git a/src/libs/UnreadIndicatorUpdater/updateUnread/index.website.js b/src/libs/UnreadIndicatorUpdater/updateUnread/index.website.js index aca9134a16a..75f6d3f31d0 100644 --- a/src/libs/UnreadIndicatorUpdater/updateUnread/index.website.js +++ b/src/libs/UnreadIndicatorUpdater/updateUnread/index.website.js @@ -10,7 +10,7 @@ import CONFIG from '../../../CONFIG'; */ function updateUnread(totalCount) { const hasUnread = totalCount !== 0; - document.title = hasUnread ? `(NEW!) ${CONFIG.SITE_TITLE}` : CONFIG.SITE_TITLE; + document.title = hasUnread ? `(${totalCount}) ${CONFIG.SITE_TITLE}` : CONFIG.SITE_TITLE; document.getElementById('favicon').href = hasUnread ? CONFIG.FAVICON.UNREAD : CONFIG.FAVICON.DEFAULT; } diff --git a/src/pages/signin/SignInPage.js b/src/pages/signin/SignInPage.js index dd12cdf992b..7af84f55867 100644 --- a/src/pages/signin/SignInPage.js +++ b/src/pages/signin/SignInPage.js @@ -53,7 +53,8 @@ const defaultProps = { class SignInPage extends Component { componentDidMount() { // Always reset the unread counter to zero on this page - updateUnread(0); + // NOTE: We need to wait for the next tick to ensure that the unread indicator is updated + setTimeout(() => updateUnread(0), 0); } render() {