mirror of
https://github.com/smittix/intercept.git
synced 2026-07-28 02:28:11 -07:00
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:
@@ -143,7 +143,7 @@ const Meshtastic = (function() {
|
|||||||
|
|
||||||
if (data.running) {
|
if (data.running) {
|
||||||
isConnected = true;
|
isConnected = true;
|
||||||
updateConnectionUI(true, data.device);
|
updateConnectionUI(true, data.device, data.connection_type);
|
||||||
if (data.node_info) {
|
if (data.node_info) {
|
||||||
updateNodeInfo(data.node_info);
|
updateNodeInfo(data.node_info);
|
||||||
localNodeId = data.node_info.num;
|
localNodeId = data.node_info.num;
|
||||||
|
|||||||
Reference in New Issue
Block a user