Fix Meshtastic connection type not restored on page refresh

Pass connection_type to updateConnectionUI() in checkStatus() so TCP
connections display correctly after browser refresh instead of defaulting
to Serial.

Fixes #98

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Smittix
2026-02-02 21:23:56 +00:00
parent a76dfde02d
commit df634dc741

View File

@@ -143,7 +143,7 @@ const Meshtastic = (function() {
if (data.running) {
isConnected = true;
updateConnectionUI(true, data.device);
updateConnectionUI(true, data.device, data.connection_type);
if (data.node_info) {
updateNodeInfo(data.node_info);
localNodeId = data.node_info.num;