(id, active, ssid = null, apMode = false)
| 11878 | if (data.vuln_summary) { |
| 11879 | vulnEl.textContent = data.vuln_summary; |
| 11880 | vulnSection.classList.remove('hidden'); |
| 11881 | } else { |
| 11882 | vulnSection.classList.add('hidden'); |
| 11883 | } |
| 11884 | } |
| 11885 | |
| 11886 | function updateHostCountDisplay() { |
| 11887 | const tableBody = document.getElementById('network-hosts-table'); |
| 11888 | const hostCount = document.getElementById('host-count'); |
| 11889 | if (!tableBody || !hostCount) { |
| 11890 | return; |
| 11891 | } |
| 11892 | |
| 11893 | const totalHosts = tableBody.querySelectorAll('tr[data-ip]').length; |
| 11894 | hostCount.textContent = `${totalHosts} host${totalHosts !== 1 ? 's' : ''}`; |
| 11895 | } |
| 11896 | |
| 11897 | function updateHostInTable(hostData) { |
| 11898 | const tableBody = document.getElementById('network-hosts-table'); |
| 11899 | if (!tableBody) { |
| 11900 | return; |
| 11901 | } |
| 11902 | |
| 11903 | const normalized = normalizeHostRecord(hostData); |
| 11904 | if (!normalized) { |
| 11905 | return; |
| 11906 | } |
| 11907 | |
| 11908 | const noDataRow = tableBody.querySelector('td[colspan="8"]'); |
| 11909 | if (noDataRow) { |
| 11910 | noDataRow.parentElement.remove(); |
| 11911 | } |
| 11912 | |
| 11913 | const selector = `tr[data-ip="${escapeSelector(normalized.ip)}"]`; |
no outgoing calls
no test coverage detected