diff --git a/desktop/src/notifications.ts b/desktop/src/notifications.ts index 2fda51e50..d7bf93507 100644 --- a/desktop/src/notifications.ts +++ b/desktop/src/notifications.ts @@ -115,6 +115,9 @@ function showDesktopNotification( body: notificationBody(frame.text), subtitle: "nanobot", }); + notification.on("failed", (_event, error) => { + console.warn(`[nanobot] Desktop notification failed: ${error}`); + }); notification.on("click", () => openChatFromNotification(frame.chat_id, options)); notification.show(); unreadNotificationCount += 1;