Skip to content

Commit

Permalink
Clear app badge when view Notifications page
Browse files Browse the repository at this point in the history
  • Loading branch information
cheeaun committed Sep 1, 2023
1 parent 0e74566 commit 852bb27
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pages/notifications.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,12 @@ function Notifications({ columnMode }) {

const announcementsListRef = useRef();

useLayoutEffect(() => {
if (navigator.clearAppBadge) {
navigator.clearAppBadge();
}
}, []);

useEffect(() => {
if (notificationID) {
states.routeNotification = {
Expand Down

0 comments on commit 852bb27

Please sign in to comment.