From 2db8cb75537f61930a8836f8fa65be178f0acb5a Mon Sep 17 00:00:00 2001 From: Aaron Opell Date: Tue, 16 Apr 2024 22:54:46 -0700 Subject: [PATCH] Probably fixed notifications --- src/scripts/background.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/scripts/background.ts b/src/scripts/background.ts index 4b340c4..22ebd5a 100644 --- a/src/scripts/background.ts +++ b/src/scripts/background.ts @@ -212,10 +212,12 @@ function onMessage( sendResponse({ success: true }); return true; } else if (request.type == "notification") { - updateLastTime(request.timeModified, request.lastTime).then(() => { - sendNotification(request.notification, request.name, request.count).then(() => { - sendResponse({ success: true }); - }); + updateLastTime(request.data.timeModified, request.data.lastTime).then(() => { + sendNotification(request.data.notification, request.data.name, request.data.count).then( + () => { + sendResponse({ success: true }); + } + ); }); return true; }