Skip to content

Commit

Permalink
revert extra changes
Browse files Browse the repository at this point in the history
  • Loading branch information
parasharrajat committed Aug 12, 2021
1 parent 7b57f19 commit b7b6794
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/libs/UnreadIndicatorUpdater/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ let connectionID;
* the title and unread count indicators
*/
function listenForReportChanges() {
console.debug('count listner');
connectionID = Onyx.connect({
key: ONYXKEYS.COLLECTION.REPORT,
callback: (report) => {
Expand All @@ -49,7 +48,6 @@ function listenForReportChanges() {
} else {
unreadActionCounts[report.reportID] = report.unreadActionCount || 0;
}
console.debug('count caller', report.reportID, report.unreadActionCount);
throttledUpdatePageTitleAndUnreadCount();
},
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const ipcRenderer = window.require('electron').ipcRenderer;
* @param {Number} totalCount
*/
function updateUnread(totalCount) {
console.debug('message count');
// Ask the main Electron process to update our
// badge count in the Mac OS dock icon
ipcRenderer.send(ELECTRON_EVENTS.REQUEST_UPDATE_BADGE_COUNT, totalCount);
Expand Down
2 changes: 0 additions & 2 deletions src/libs/UnreadIndicatorUpdater/updateUnread/index.website.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import CONFIG from '../../../CONFIG';
* @param {Number} totalCount
*/
function updateUnread(totalCount) {
console.debug('message count');

const hasUnread = totalCount !== 0;
document.title = hasUnread ? `(${totalCount}) ${CONFIG.SITE_TITLE}` : CONFIG.SITE_TITLE;
document.getElementById('favicon').href = hasUnread ? CONFIG.FAVICON.UNREAD : CONFIG.FAVICON.DEFAULT;
Expand Down

0 comments on commit b7b6794

Please sign in to comment.