summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components/notification_request/notification_request.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/mail/static/src/components/notification_request/notification_request.js')
-rw-r--r--addons/mail/static/src/components/notification_request/notification_request.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/addons/mail/static/src/components/notification_request/notification_request.js b/addons/mail/static/src/components/notification_request/notification_request.js
index cb1b59ccbaa..69fb5beab2f 100644
--- a/addons/mail/static/src/components/notification_request/notification_request.js
+++ b/addons/mail/static/src/components/notification_request/notification_request.js
@@ -74,9 +74,7 @@ class NotificationRequest extends Component {
if (def) {
def.then(this._handleResponseNotificationPermission.bind(this));
}
-
- const device = this.env.messaging.device;
- if (!device.isMobile) {
+ if (!this.env.messaging.device.isMobile) {
this.env.messaging.messagingMenu.close();
}
}