1
0
Derivar 0

Allow for unknown stops in side pane

Este cometimento está contido em:
Mattéo Delabre 2020-07-27 23:48:10 +02:00
ascendente 0b8963af99
cometimento ca8d6f894f
Assinados por: matteo
ID da chave GPG: AE3FBD02DC583ABB
1 ficheiros modificados com 3 adições e 1 eliminações

Ver ficheiro

@ -29,7 +29,9 @@ setInterval(() => {
const timeToHTML = time => Math.ceil((time - Date.now()) / 1000);
const stopToHTML = stopId => network.stops[stopId].properties.name;
const stopToHTML = stopId => stopId in network.stops ?
network.stops[stopId].properties.name :
'<em>Arrêt inconnu</em>';
const passingsToHTML = passings => passings.map(([stopId, time]) => `
<tr>