Comment out test code

This commit is contained in:
Lim Chee Aun 2023-10-23 11:12:28 +08:00
parent 2c4dd0cdb7
commit f2c2983663

View file

@ -217,23 +217,23 @@ function Notifications({ columnMode }) {
} }
}, [notificationID, notificationAccessToken]); }, [notificationID, notificationAccessToken]);
useEffect(() => { // useEffect(() => {
if (uiState === 'default') { // if (uiState === 'default') {
(async () => { // (async () => {
try { // try {
const registration = await getRegistration(); // const registration = await getRegistration();
if (registration?.getNotifications) { // if (registration?.getNotifications) {
const notifications = await registration.getNotifications(); // const notifications = await registration.getNotifications();
console.log('🔔 Push notifications', notifications); // console.log('🔔 Push notifications', notifications);
// Close all notifications? // // Close all notifications?
// notifications.forEach((notification) => { // // notifications.forEach((notification) => {
// notification.close(); // // notification.close();
// }); // // });
} // }
} catch (e) {} // } catch (e) {}
})(); // })();
} // }
}, [uiState]); // }, [uiState]);
return ( return (
<div <div