mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-23 17:16:26 +01:00
Clear app badge when view Notifications page
This commit is contained in:
parent
0e745663f0
commit
852bb27e81
1 changed files with 6 additions and 0 deletions
|
@ -194,6 +194,12 @@ function Notifications({ columnMode }) {
|
|||
|
||||
const announcementsListRef = useRef();
|
||||
|
||||
useLayoutEffect(() => {
|
||||
if (navigator.clearAppBadge) {
|
||||
navigator.clearAppBadge();
|
||||
}
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
if (notificationID) {
|
||||
states.routeNotification = {
|
||||
|
|
Loading…
Reference in a new issue