Fixed race condition issues where device name wasn't displaying properly: Page title fixes: - Added document.title update to sensors.html (was missing) - wifi.html already had it but improved reliability Sidebar device name fixes: - Created updateSidebarDeviceName() function with retry logic - Attempts update immediately, then at 100ms and 500ms delays - Handles async sidebar loading timing issues - Added console logging for debugging - Both sensors.html and wifi.html now reliably show device name This ensures the device ID/name always appears in: 1. Browser tab title (e.g., "NebuleAir_001") 2. Sidebar footer (bottom of navigation) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
19 KiB
Executable File
19 KiB
Executable File