update notification button when permission granted

pull/1/head
David Baker 2015-07-03 16:29:41 +01:00
parent 275286801b
commit 1baaf39c48
1 changed files with 3 additions and 1 deletions

View File

@ -43,7 +43,9 @@ module.exports = {
enable: function() {
if (!this.havePermission()) {
global.Notification.requestPermission();
global.Notification.requestPermission(function() {
this.forceUpdate();
});
}
if (!global.localStorage) return;