update notification button when permission granted
This commit is contained in:
@@ -43,7 +43,9 @@ module.exports = {
|
||||
|
||||
enable: function() {
|
||||
if (!this.havePermission()) {
|
||||
global.Notification.requestPermission();
|
||||
global.Notification.requestPermission(function() {
|
||||
this.forceUpdate();
|
||||
});
|
||||
}
|
||||
|
||||
if (!global.localStorage) return;
|
||||
|
||||
Reference in New Issue
Block a user