pull/348/head
unknown 2024-04-08 09:16:16 +02:00
rodzic e945001961
commit 8de3acec1f
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -1144,7 +1144,7 @@ function populatePortsMenu() {
for (i = 0; i < laststatus.comms.interfaces.ports.length; i++) {
var port = friendlyPort(i)
var lastUsedPort = localStorage.getItem('lastUsedPort');
if (port == lastUsedPort) {
if (laststatus.comms.interfaces.ports[i].path == lastUsedPort) {
response += `<option value="` + laststatus.comms.interfaces.ports[i].path + `" selected>` + laststatus.comms.interfaces.ports[i].path.replace("/dev/tty.", "") + " " + port.note + `</option>`;
} else {
response += `<option value="` + laststatus.comms.interfaces.ports[i].path + `">` + laststatus.comms.interfaces.ports[i].path.replace("/dev/tty.", "") + " " + port.note + `</option>`;