From 6d467e33edca04d6e73c7d086cae12326357a6a3 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 25 Aug 2020 13:21:53 +0200 Subject: [PATCH] Avoid getting exceptions when user has no access to status app but getting notified by broadcast message --- api/js/framework/fw_desktop.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/api/js/framework/fw_desktop.js b/api/js/framework/fw_desktop.js index 3b81a84732..148fb0c2d9 100644 --- a/api/js/framework/fw_desktop.js +++ b/api/js/framework/fw_desktop.js @@ -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);