mirror of https://github.com/vector-im/riot-web
update notification button when permission granted
parent
275286801b
commit
1baaf39c48
|
@ -43,7 +43,9 @@ module.exports = {
|
|||
|
||||
enable: function() {
|
||||
if (!this.havePermission()) {
|
||||
global.Notification.requestPermission();
|
||||
global.Notification.requestPermission(function() {
|
||||
this.forceUpdate();
|
||||
});
|
||||
}
|
||||
|
||||
if (!global.localStorage) return;
|
||||
|
|
Loading…
Reference in New Issue