kopia lustrzana https://github.com/OpenBuilds/OpenBuilds-CONTROL
Fixed #308
rodzic
e945001961
commit
8de3acec1f
|
@ -1144,7 +1144,7 @@ function populatePortsMenu() {
|
||||||
for (i = 0; i < laststatus.comms.interfaces.ports.length; i++) {
|
for (i = 0; i < laststatus.comms.interfaces.ports.length; i++) {
|
||||||
var port = friendlyPort(i)
|
var port = friendlyPort(i)
|
||||||
var lastUsedPort = localStorage.getItem('lastUsedPort');
|
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>`;
|
response += `<option value="` + laststatus.comms.interfaces.ports[i].path + `" selected>` + laststatus.comms.interfaces.ports[i].path.replace("/dev/tty.", "") + " " + port.note + `</option>`;
|
||||||
} else {
|
} else {
|
||||||
response += `<option value="` + laststatus.comms.interfaces.ports[i].path + `">` + laststatus.comms.interfaces.ports[i].path.replace("/dev/tty.", "") + " " + port.note + `</option>`;
|
response += `<option value="` + laststatus.comms.interfaces.ports[i].path + `">` + laststatus.comms.interfaces.ports[i].path.replace("/dev/tty.", "") + " " + port.note + `</option>`;
|
||||||
|
|
Ładowanie…
Reference in New Issue