correct output of device selection event
This commit is contained in:
parent
fb59ee4320
commit
94ded2e57b
1 changed files with 1 additions and 1 deletions
|
|
@ -731,7 +731,7 @@ gapp.register("kiri.init", [], (root, exports) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
function setDeviceCode(code, devicename) {
|
function setDeviceCode(code, devicename) {
|
||||||
api.event.emit('device.select', {devicename, code});
|
api.event.emit('device.select', devicename);
|
||||||
try {
|
try {
|
||||||
if (typeof(code) === 'string') code = js2o(code) || {};
|
if (typeof(code) === 'string') code = js2o(code) || {};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue