diff --git a/static/app.js b/static/app.js index d9427da..de3037a 100755 --- a/static/app.js +++ b/static/app.js @@ -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");