From 943813f759c8c422afcfec19b004370146c6105b Mon Sep 17 00:00:00 2001 From: n4ze3m Date: Tue, 16 Jul 2024 10:42:32 +0530 Subject: [PATCH] feat: Add notification support for knowledge base processing --- src/libs/send-notification.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libs/send-notification.ts b/src/libs/send-notification.ts index 91d1603..86a3f9c 100644 --- a/src/libs/send-notification.ts +++ b/src/libs/send-notification.ts @@ -7,12 +7,14 @@ export const sendNotification = async (title: string, message: string) => { "sendNotificationAfterIndexing" ) if (sendNotificationAfterIndexing) { + console.log("Sending notification") browser.notifications.create({ type: "basic", - iconUrl: browser.runtime.getURL("/icon.png"), + iconUrl: browser.runtime.getURL("/icon/128.png"), title, message }) + console.log("Notification sent") } } catch (error) { console.error(error)