Skip to content

Commit 1baaf39

Browse files
committed
update notification button when permission granted
1 parent 2752868 commit 1baaf39

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎src/controllers/atoms/EnableNotificationsButton.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ module.exports = {
4343

4444
enable: function() {
4545
if (!this.havePermission()) {
46-
global.Notification.requestPermission();
46+
global.Notification.requestPermission(function() {
47+
this.forceUpdate();
48+
});
4749
}
4850

4951
if (!global.localStorage) return;

0 commit comments

Comments
 (0)