From 6195538fff913fdc7a1672d322f255164fda8f46 Mon Sep 17 00:00:00 2001 From: Mashintime Date: Sun, 12 Feb 2023 17:11:45 +0000 Subject: [PATCH] Prettified Code! --- gui/preload-main.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/gui/preload-main.js b/gui/preload-main.js index 474c443c..cfbf0e07 100644 --- a/gui/preload-main.js +++ b/gui/preload-main.js @@ -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