fix headsign issue

This commit is contained in:
cjdenio committed 2026-07-02 08:54:59 -06:00
1 parent 37a2a61df5
commit a07eeed787
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -273,6 +273,6 @@
</div> </div>
</div> </div>
<script type="module" src="/js/main.js?v=1"></script> <script type="module" src="/js/main.js?v=2"></script>
</body> </body>
</html> </html>
+1 -1
View File
@@ -168,7 +168,7 @@ function renderVehicle(vehicle) {
icon: renderVehicleIcon(vehicle), icon: renderVehicleIcon(vehicle),
}) })
.bindPopup( .bindPopup(
`<b>${routeDesignator(vehicle.route)}</b> to <b>${vehicle.headsign.replace( `<b>${routeDesignator(vehicle.route)}</b> to <b>${vehicle.headsign?.replace(
/^to /i, /^to /i,
"" ""
)}</b>${vehicle.nearest_station ? `<br />@ ${vehicle.nearest_station?.name}` : ""}<br /><br /><small>vehicle #: ${vehicle.id}</small>` )}</b>${vehicle.nearest_station ? `<br />@ ${vehicle.nearest_station?.name}` : ""}<br /><br /><small>vehicle #: ${vehicle.id}</small>`