From d518a2b118a3c81e07b130fa0d214b871c62d74f Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 22 Sep 2021 11:54:01 +0200 Subject: [PATCH] Move framework push boradcast method into base class --- api/js/framework/fw_base.js | 12 ++++++++++++ api/js/framework/fw_desktop.js | 12 ------------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/api/js/framework/fw_base.js b/api/js/framework/fw_base.js index 9a20f39f43..65d3f6a59d 100644 --- a/api/js/framework/fw_base.js +++ b/api/js/framework/fw_base.js @@ -837,6 +837,18 @@ window.fw_base = (function(){ "use strict"; return Class.extend( window.location = _url; }, + /** + * 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, true); + }, + /** * Sets the active framework application to the application specified by _app * diff --git a/api/js/framework/fw_desktop.js b/api/js/framework/fw_desktop.js index 4326852ec7..ee1bc87aee 100644 --- a/api/js/framework/fw_desktop.js +++ b/api/js/framework/fw_desktop.js @@ -519,18 +519,6 @@ import "sortablejs/Sortable.min.js"; } }, - /** - * 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, true); - }, - /** * Get color scheme * @return {string|null} returns active color scheme mode or null in case browser not supporting it