Skip to content

Commit

Permalink
fix(notifier): call sendResponse when notifications are disabled
Browse files Browse the repository at this point in the history
The callers expect a response even if we don't actually show a
notification.
  • Loading branch information
ttys0dev committed Oct 5, 2024
1 parent 95c8aee commit ad15315
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/background_notifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ export const handleBackgroundNotification = (req, sender, sendResponse) => {
break;
case 'showUpload':
chrome.storage.local.get('options', (items) => {
if (!items || !items.options.show_notifications) return;
showNotification(title, message);
if (items && items.options.show_notifications)
showNotification(title, message);
sendResponse({ status: 'success ' });
});
break;
Expand Down

0 comments on commit ad15315

Please sign in to comment.