diff --git a/src/controllers/organisms/Notifier.js b/src/controllers/organisms/Notifier.js index 2c09322aff..29618d8d87 100644 --- a/src/controllers/organisms/Notifier.js +++ b/src/controllers/organisms/Notifier.js @@ -55,16 +55,23 @@ module.exports = { global.Notification.requestPermission(function() { if (callback) { callback(); + dis.dispatch({ + action: "notifier_enabled", + value: true + }); } }); } if (!global.localStorage) return; global.localStorage.setItem('notifications_enabled', 'true'); - dis.dispatch({ - action: "notifier_enabled", - value: true - }); + + if (this.havePermission) { + dis.dispatch({ + action: "notifier_enabled", + value: true + }); + } } else { if (!global.localStorage) return;