[desktop] fixed wrong action click

This commit is contained in:
Maxim Kadushkin 2020-10-28 22:59:24 +03:00
parent adb4eb8eda
commit 29520613f9

View file

@ -111,7 +111,7 @@ define([
} else } else
if (/button:click/.test(cmd)) { if (/button:click/.test(cmd)) {
var obj = JSON.parse(param); var obj = JSON.parse(param);
if ( !!obj.action ) { if ( !!obj.action && !!titlebuttons[obj.action] ) {
titlebuttons[obj.action].btn.click(); titlebuttons[obj.action].btn.click();
} }
} else } else