Permalink
Browse files

🚑 "BusService.isMasterTab is not a function" error fixed. Closes #717

…(thank you @andrepurnomo)
  • Loading branch information...
RafiZz committed Jan 11, 2019
1 parent 0386cbc commit dd390322e3547d6a70cf1e05d7cd0b7d0232bf5c
Showing with 2 additions and 1 deletion.
  1. +2 −1 web_debranding/static/src/js/native_notifications.js
@@ -15,8 +15,9 @@ odoo.define('web_debranding.native_notifications', function (require) {
if (title === _t('Yay, push notifications are enabled!') || title === _t('Permission denied')) {
content = content.replace(/Odoo/ig, odoo.debranding_new_name);
}

if (window.Notification && Notification.permission === "granted") {
if (BusService.isMasterTab()) {
if (this.isMasterTab()) {
this._sendNativeNotification(title, content, callback);
}
} else {

0 comments on commit dd39032

Please sign in to comment.