diff --git a/static/index.html b/static/index.html index 9409796..abebb0a 100644 --- a/static/index.html +++ b/static/index.html @@ -273,6 +273,6 @@ - + diff --git a/static/js/main.js b/static/js/main.js index 3ce6288..8c7b456 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -168,7 +168,7 @@ function renderVehicle(vehicle) { icon: renderVehicleIcon(vehicle), }) .bindPopup( - `${routeDesignator(vehicle.route)} to ${vehicle.headsign.replace( + `${routeDesignator(vehicle.route)} to ${vehicle.headsign?.replace( /^to /i, "" )}${vehicle.nearest_station ? `
@ ${vehicle.nearest_station?.name}` : ""}

vehicle #: ${vehicle.id}`