Avoid getting exceptions when user has no access to status app but getting notified by broadcast message

This commit is contained in:
Hadi Nategh 2020-08-25 13:21:53 +02:00
parent 8628b50ffb
commit 6d467e33ed

View File

@ -523,6 +523,18 @@
{
this.tabsUi.getTab(_appname).setNotification(_value);
}
},
/**
* This method only used for status app when it tries to broadcast data to users
* avoiding throwing exceptions for users whom might have no status app access
*
* @param {type} _data
* @returns {undefined}
*/
execPushBroadcastAppStatus: function(_data)
{
if (app.status) app.status.mergeContent(_data);
}
});
})(window);