mirror of https://github.com/vector-im/riot-web
argh, javascript
parent
1baaf39c48
commit
b8f9cb44b8
|
@ -43,8 +43,9 @@ module.exports = {
|
|||
|
||||
enable: function() {
|
||||
if (!this.havePermission()) {
|
||||
var that = this;
|
||||
global.Notification.requestPermission(function() {
|
||||
this.forceUpdate();
|
||||
that.forceUpdate();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue