push notification

fix implemented
This commit is contained in:
dimitar committed 2026-02-22 04:00:20 +01:00
1 parent 0bbf2ab56f
commit 57864e00da
15 files changed
+5126 -26

No files matched your search

+12 -3
View File
@@ -32,9 +32,18 @@ export function NotificationBanner() {
};
const handleSubscribe = async () => {
const success = await subscribe();
if (success) {
setIsVisible(false);
console.log('handleSubscribe called');
console.log('isSupported:', isSupported);
console.log('isSubscribed:', isSubscribed);
try {
const success = await subscribe();
console.log('subscribe() returned:', success);
if (success) {
setIsVisible(false);
}
} catch (error) {
console.error('handleSubscribe error:', error);
}
};