fix: Hide welcome overlay when mode URL param is present

- Skip welcome screen when navigating with ?mode=X parameter
- Fixes nav from dashboards to panel modes (e.g., APRS, WiFi)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Smittix
2026-01-30 09:52:49 +00:00
parent b0c323bb89
commit 94fcea0e99
+5
View File
@@ -2428,6 +2428,11 @@
// Valid modes that can be switched to
const validModes = ['pager', 'sensor', 'rtlamr', 'satellite', 'sstv', 'wifi', 'bluetooth', 'listening', 'aprs', 'tscm', 'spystations', 'meshtastic'];
if (validModes.includes(modeParam)) {
// Hide welcome overlay if present (skip the welcome screen)
const welcomePage = document.getElementById('welcomePage');
if (welcomePage) {
welcomePage.style.display = 'none';
}
switchMode(modeParam);
}
}