Lookup enhancements

This commit is contained in:
2025-12-16 09:10:45 -05:00
parent 98d0e3cfd7
commit d7eefdb652
3 changed files with 129 additions and 8 deletions

View File

@@ -234,8 +234,8 @@
const data = JSON.parse(event.data);
console.log('WebSocket message received:', data);
// Refresh display when any PPR-related or local flight event occurs
if (data.type && (data.type.includes('ppr_') || data.type === 'status_update' || data.type.includes('local_flight_'))) {
// Refresh display when any PPR-related, local flight, or departure event occurs
if (data.type && (data.type.includes('ppr_') || data.type === 'status_update' || data.type.includes('local_flight_') || data.type.includes('departure_'))) {
console.log('Flight update detected, refreshing display...');
loadArrivals();
loadDepartures();