From 29520613f97340857318443703096a1c302fce60 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Wed, 28 Oct 2020 22:59:24 +0300 Subject: [PATCH] [desktop] fixed wrong action click --- apps/common/main/lib/controller/Desktop.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/common/main/lib/controller/Desktop.js b/apps/common/main/lib/controller/Desktop.js index fa1ca9e4d..8b7e84641 100644 --- a/apps/common/main/lib/controller/Desktop.js +++ b/apps/common/main/lib/controller/Desktop.js @@ -111,7 +111,7 @@ define([ } else if (/button:click/.test(cmd)) { var obj = JSON.parse(param); - if ( !!obj.action ) { + if ( !!obj.action && !!titlebuttons[obj.action] ) { titlebuttons[obj.action].btn.click(); } } else