mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-01 18:41:05 +02:00
update notification button when permission granted
This commit is contained in:
parent
275286801b
commit
1baaf39c48
@ -43,7 +43,9 @@ module.exports = {
|
|||||||
|
|
||||||
enable: function() {
|
enable: function() {
|
||||||
if (!this.havePermission()) {
|
if (!this.havePermission()) {
|
||||||
global.Notification.requestPermission();
|
global.Notification.requestPermission(function() {
|
||||||
|
this.forceUpdate();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!global.localStorage) return;
|
if (!global.localStorage) return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user