From b8f9cb44b8ca335a0d510e71c23cbbe56e256b51 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 3 Jul 2015 16:35:06 +0100 Subject: [PATCH] argh, javascript --- src/controllers/atoms/EnableNotificationsButton.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/controllers/atoms/EnableNotificationsButton.js b/src/controllers/atoms/EnableNotificationsButton.js index 33bc270abd..c600f33013 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(); }); }