Skip to content

Commit

Permalink
Probably fixed notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
aopell committed Apr 17, 2024
1 parent eb93392 commit 2db8cb7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/scripts/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2db8cb7

Please sign in to comment.