Prettified Code!

This commit is contained in:
Mashintime 2023-02-12 17:11:45 +00:00 committed by GitHub Action
parent 966289c744
commit 6195538fff

View file

@ -2168,7 +2168,8 @@ ipcRenderer.on("action-update-daemon-state", (event, arg) => {
document.getElementById("hamlib_deviceport").add(option);
}
// set device from config if available
document.getElementById("hamlib_deviceport").value = config.hamlib_deviceport;
document.getElementById("hamlib_deviceport").value =
config.hamlib_deviceport;
}
}
@ -2185,10 +2186,10 @@ ipcRenderer.on("action-update-daemon-state", (event, arg) => {
for (i = 0; i < arg.serial_devices.length; i++) {
var option = document.createElement("option");
option.text =
arg.serial_devices[i]["port"] +
" -- " +
arg.serial_devices[i]["description"];
option.value = arg.serial_devices[i]["port"];
arg.serial_devices[i]["port"] +
" -- " +
arg.serial_devices[i]["description"];
option.value = arg.serial_devices[i]["port"];
document.getElementById("hamlib_ptt_port").add(option);
}
// set device from config if available