Skip to content

Commit b8f9cb4

Browse files
committed
argh, javascript
1 parent 1baaf39 commit b8f9cb4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/controllers/atoms/EnableNotificationsButton.js‎

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

4444
enable: function() {
4545
if (!this.havePermission()) {
46+
var that = this;
4647
global.Notification.requestPermission(function() {
47-
this.forceUpdate();
48+
that.forceUpdate();
4849
});
4950
}
5051

0 commit comments

Comments
 (0)