diff --git a/src/controllers/atoms/EnableNotificationsButton.js b/src/controllers/atoms/EnableNotificationsButton.js index 33bc270a..c600f330 100644 --- a/src/controllers/atoms/EnableNotificationsButton.js +++ b/src/controllers/atoms/EnableNotificationsButton.js @@ -43,8 +43,9 @@ module.exports = { enable: function() { if (!this.havePermission()) { + var that = this; global.Notification.requestPermission(function() { - this.forceUpdate(); + that.forceUpdate(); }); }