[desktop] fixed wrong action click
This commit is contained in:
parent
adb4eb8eda
commit
29520613f9
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue