mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-28 20:28:52 +03:00
Comment out test code
This commit is contained in:
parent
2c4dd0cdb7
commit
f2c2983663
1 changed files with 17 additions and 17 deletions
|
@ -217,23 +217,23 @@ function Notifications({ columnMode }) {
|
|||
}
|
||||
}, [notificationID, notificationAccessToken]);
|
||||
|
||||
useEffect(() => {
|
||||
if (uiState === 'default') {
|
||||
(async () => {
|
||||
try {
|
||||
const registration = await getRegistration();
|
||||
if (registration?.getNotifications) {
|
||||
const notifications = await registration.getNotifications();
|
||||
console.log('🔔 Push notifications', notifications);
|
||||
// Close all notifications?
|
||||
// notifications.forEach((notification) => {
|
||||
// notification.close();
|
||||
// });
|
||||
}
|
||||
} catch (e) {}
|
||||
})();
|
||||
}
|
||||
}, [uiState]);
|
||||
// useEffect(() => {
|
||||
// if (uiState === 'default') {
|
||||
// (async () => {
|
||||
// try {
|
||||
// const registration = await getRegistration();
|
||||
// if (registration?.getNotifications) {
|
||||
// const notifications = await registration.getNotifications();
|
||||
// console.log('🔔 Push notifications', notifications);
|
||||
// // Close all notifications?
|
||||
// // notifications.forEach((notification) => {
|
||||
// // notification.close();
|
||||
// // });
|
||||
// }
|
||||
// } catch (e) {}
|
||||
// })();
|
||||
// }
|
||||
// }, [uiState]);
|
||||
|
||||
return (
|
||||
<div
|
||||
|
|
Loading…
Reference in a new issue