mirror of
https://github.com/cjdenio/uta-trax-api.git
synced 2026-08-04 22:06:34 +00:00
fix headsign issue
This commit is contained in:
+1
-1
@@ -273,6 +273,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="module" src="/js/main.js?v=1"></script>
|
||||
<script type="module" src="/js/main.js?v=2"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+1
-1
@@ -168,7 +168,7 @@ function renderVehicle(vehicle) {
|
||||
icon: renderVehicleIcon(vehicle),
|
||||
})
|
||||
.bindPopup(
|
||||
`<b>${routeDesignator(vehicle.route)}</b> to <b>${vehicle.headsign.replace(
|
||||
`<b>${routeDesignator(vehicle.route)}</b> to <b>${vehicle.headsign?.replace(
|
||||
/^to /i,
|
||||
""
|
||||
)}</b>${vehicle.nearest_station ? `<br />@ ${vehicle.nearest_station?.name}` : ""}<br /><br /><small>vehicle #: ${vehicle.id}</small>`
|
||||
|
||||
Reference in New Issue
Block a user