()
| 11706 | } |
| 11707 | document.addEventListener('DOMContentLoaded', _restoreThreatMonitorState); |
| 11708 | |
| 11709 | // Populate the External Threat Detection interface selector from the WiFi |
| 11710 | // interfaces the analyzer sees (same source as the WiFi Analyzer tab). |
| 11711 | async function _threatFillIfaces() { |
| 11712 | const sel = document.getElementById('threat-sweep-iface'); |
| 11713 | if (!sel) return; |
| 11714 | try { |
| 11715 | const resp = await fetch('/api/net/wifi/interfaces'); |
| 11716 | const d = await resp.json(); |
| 11717 | const ifs = (d && d.interfaces) || []; |
| 11718 | const cur = sel.value; |
| 11719 | sel.innerHTML = '<option value="">Auto</option>' + ifs.map(i => { |
no test coverage detected