mirror of
https://github.com/smittix/intercept.git
synced 2026-06-08 22:21:55 -07:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user