()
| 2868 | b.classList.toggle('bg-Ragnar-600', on); b.classList.toggle('text-white', on); |
| 2869 | b.classList.toggle('text-slate-300', !on); |
| 2870 | }); |
| 2871 | showTab('network'); |
| 2872 | showNetworkSubtab('wifi'); // wifiInit() — auto-scans when there's no survey yet |
| 2873 | _wifiFlagBanner(); |
| 2874 | if (_wifiState.data) { |
| 2875 | if (_wifiState.data.aps.some(a => a.bssid === _wifiState.flagged.bssid)) { |
| 2876 | _wifiState.flagged.applied = true; |
| 2877 | wifiSelectAp(_wifiState.flagged.bssid); |
| 2878 | _wifiFlagBanner(); |
| 2879 | } else { |
| 2880 | wifiScan(); // stale survey — the rogue may only just have appeared |
| 2881 | } |
| 2882 | } |
| 2883 | } |
| 2884 |
no test coverage detected