correct output of device selection event

This commit is contained in:
Stewart Allen 2024-07-22 10:51:46 -04:00
commit 94ded2e57b

View file

@ -731,7 +731,7 @@ gapp.register("kiri.init", [], (root, exports) => {
}
function setDeviceCode(code, devicename) {
api.event.emit('device.select', {devicename, code});
api.event.emit('device.select', devicename);
try {
if (typeof(code) === 'string') code = js2o(code) || {};