()
| 20077 | } else if (data.wifi_connected) { |
| 20078 | const ssid = data.current_ssid || 'Connected'; |
| 20079 | label.textContent = data.ap_mode_active ? 'AP Mode' : 'WiFi'; |
| 20080 | name.textContent = data.ap_mode_active ? `AP: ${data.ap_ssid || 'Ragnar'}` : ssid; |
| 20081 | if (ip) ip.textContent = ''; |
| 20082 | if (status) status.className = 'w-3 h-3 bg-green-500 rounded-full pulse-glow'; |
| 20083 | if (icon) { icon.innerHTML = wifiIcon; icon.className = 'text-green-400'; } |
| 20084 | } else if (data.pan_connected) { |
| 20085 | label.textContent = 'USB/PAN'; |
| 20086 | name.textContent = 'Connected via USB'; |
| 20087 | if (ip) ip.textContent = ''; |
| 20088 | if (status) status.className = 'w-3 h-3 bg-green-500 rounded-full pulse-glow'; |
| 20089 | if (icon) icon.className = 'text-yellow-400'; |
| 20090 | } else if (data.bluetooth_active) { |
nothing calls this directly
no test coverage detected