Update logo for CTS

This commit is contained in:
Emmy D'Anello 2024-11-11 22:05:00 +01:00
parent af61173e9d
commit e58ad34e43
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85

View File

@ -202,9 +202,13 @@ function getTrainType(train) {
default:
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":
return "A"
return train.routeShortName.split(" ")[1]
case "FR-EUROSTAR":
return "Eurostar"
case "IT-FRA-TI":
@ -216,7 +220,6 @@ function getTrainType(train) {
return "NJ"
return "ÖBB"
case "CH-ALL":
return "A"
default:
return train.routeShortName?.split(" ")[0]
}