Ignore browsing apps with their status 5 and index set to none

This commit is contained in:
Hadi Nategh 2021-04-06 17:09:31 +02:00
parent 4045c06896
commit d29459d9e5

View File

@ -236,8 +236,8 @@ var fw_base = (function(){ "use strict"; return Class.extend(
deferred = _app.browser.browse(_url); deferred = _app.browser.browse(_url);
this.setActiveApp(_app); this.setActiveApp(_app);
} }
// load application with status 5 as it will run in the background // load application with status 5 as it will run in the background, and ignore apps with index set none
else if (_status == 5) else if (_status == 5 && !_url.match(/menuaction\=none/))
{ {
deferred = _app.browser.browse(_url); deferred = _app.browser.browse(_url);
} }