Skip to content

Commit

Permalink
update property name
Browse files Browse the repository at this point in the history
  • Loading branch information
pradeepmdk committed Oct 12, 2023
1 parent 04c4827 commit 2344675
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libs/UnreadIndicatorUpdater/updateUnread/index.website.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
*/
import CONFIG from '../../../CONFIG';

let unReadTotalCount = 0;
let unreadTotalCount = 0;
/**
* Set the page title on web
*
* @param {Number} totalCount
*/
function updateUnread(totalCount) {
const hasUnread = totalCount !== 0;
unReadTotalCount = totalCount;
unreadTotalCount = totalCount;
// This setTimeout is required because due to how react rendering messes with the DOM, the document title can't be modified synchronously, and we must wait until all JS is done
// running before setting the title.
setTimeout(() => {
Expand All @@ -24,7 +24,7 @@ function updateUnread(totalCount) {
}

window.addEventListener('popstate', () => {
updateUnread(unReadTotalCount);
updateUnread(unreadTotalCount);
});

export default updateUnread;

0 comments on commit 2344675

Please sign in to comment.