From ab5b96c9708cc562d6ed9621d6b28c6d1dbd9484 Mon Sep 17 00:00:00 2001 From: Yurii Date: Mon, 19 Oct 2026 05:22:30 +0300 Subject: [PATCH] fix: render scanned Wi-Fi names as text --- src_data/scripts/utils.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src_data/scripts/utils.js b/src_data/scripts/utils.js index c728a8e..d225bfa 100644 --- a/src_data/scripts/utils.js +++ b/src_data/scripts/utils.js @@ -141,10 +141,18 @@ const setupNetworkScanForm = (formSelector, tableSelector) => { row.insertCell().textContent = `#${i + 1}`; const nameCell = row.insertCell(); - nameCell.innerHTML = result[i].hidden ? `${result[i].bssid}` : result[i].ssid; + if (result[i].hidden) { + const hiddenName = document.createElement('i'); + hiddenName.textContent = result[i].bssid; + nameCell.appendChild(hiddenName); + + } else { + nameCell.textContent = result[i].ssid; + } + nameCell.onclick = (event) => { const input = document.querySelector("[name='sta[ssid]']"); - const ssid = event.target.parentNode.dataset.ssid; + const ssid = row.dataset.ssid; if (!input || !ssid) { return; } @@ -922,4 +930,4 @@ function c2f(value) { function f2c(value) { return (value - 32) * (5 / 9); -} \ No newline at end of file +}