added scanning networks text
This commit is contained in:
parent
39f0496b92
commit
96410135c8
@ -3323,6 +3323,8 @@ function sendNetworkToSSID(element) {
|
||||
function scanNetworks() {
|
||||
var networksListReset = document.getElementById("networks-list");
|
||||
networksListReset.innerHTML = "";
|
||||
var listItem2 = document.createElement("li");
|
||||
listItem2.textContent = "Scanning networks...";
|
||||
fetch("/scanNetworks", {
|
||||
method: "PUT",
|
||||
})
|
||||
@ -3330,7 +3332,7 @@ function scanNetworks() {
|
||||
.then(data => {
|
||||
// Parse the response data as JSON
|
||||
var networks = JSON.parse(data);
|
||||
|
||||
networksListReset.innerHTML = "";
|
||||
// Iterate over the networks object and create list items
|
||||
for (var ssid in networks) {
|
||||
var listItem = document.createElement("li");
|
||||
|
Loading…
Reference in New Issue
Block a user