Update logo for CTS
This commit is contained in:
parent
af61173e9d
commit
e58ad34e43
|
@ -202,9 +202,13 @@ function getTrainType(train) {
|
||||||
default:
|
default:
|
||||||
return trainType
|
return trainType
|
||||||
}
|
}
|
||||||
case "FR-IDF-IDFM":
|
case "FR-IDFM":
|
||||||
|
const route_split = train.routeShortName.split(" ")
|
||||||
|
if (route_split[0] === "Bus")
|
||||||
|
return route_split[1]
|
||||||
|
return route_split[0]
|
||||||
case "FR-GES-CTS":
|
case "FR-GES-CTS":
|
||||||
return "A"
|
return train.routeShortName.split(" ")[1]
|
||||||
case "FR-EUROSTAR":
|
case "FR-EUROSTAR":
|
||||||
return "Eurostar"
|
return "Eurostar"
|
||||||
case "IT-FRA-TI":
|
case "IT-FRA-TI":
|
||||||
|
@ -216,7 +220,6 @@ function getTrainType(train) {
|
||||||
return "NJ"
|
return "NJ"
|
||||||
return "ÖBB"
|
return "ÖBB"
|
||||||
case "CH-ALL":
|
case "CH-ALL":
|
||||||
return "A"
|
|
||||||
default:
|
default:
|
||||||
return train.routeShortName?.split(" ")[0]
|
return train.routeShortName?.split(" ")[0]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue