From c2ca23a071b4303be19edd5ff347f44e65fd44fa Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 20 Oct 2020 17:28:14 +0200 Subject: [PATCH] Do not create application object if already exists simply open the tab --- api/js/framework/fw_base.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/js/framework/fw_base.js b/api/js/framework/fw_base.js index 0c1bab9b9e..9533db7969 100644 --- a/api/js/framework/fw_base.js +++ b/api/js/framework/fw_base.js @@ -681,6 +681,12 @@ var fw_base = (function(){ "use strict"; return Class.extend( if (app) { var appname = app.appName+"-"+(_extra.id ? _extra.id : btoa(_link)); + this.applications[appname] = this.getApplicationByName(appname); + if (this.applications[appname]) + { + this.setActiveApp(this.applications[appname]); + return; + } var self = this; // add target flag _link += '&fw_target='+appname;