diff --git a/src/utils/background_notifier.js b/src/utils/background_notifier.js index 7fe9356d..34f7c101 100644 --- a/src/utils/background_notifier.js +++ b/src/utils/background_notifier.js @@ -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;