Fix detection if current time is shown
This commit is contained in:
parent
b6f6f65c63
commit
650bed8348
@ -119,7 +119,7 @@ var connection_result_observer = new MutationObserver((mutations) => {
|
||||
data[i]["from"]["time"] = relation_departure_list[1];
|
||||
data[i]["from"]["time_current"] = null;
|
||||
var relation_departure_current = relation_departure.querySelector("span.delay, span.delayOnTime");
|
||||
if(typeof relation_departure_list !== 'undfined') {
|
||||
if(relation_departure_current != null) {
|
||||
data[i]["from"]["time_current"] = relation_departure_current.innerText.trim();
|
||||
}
|
||||
|
||||
@ -129,7 +129,7 @@ var connection_result_observer = new MutationObserver((mutations) => {
|
||||
data[i]["to"]["time"] = relation_arrival_list[1];
|
||||
data[i]["to"]["time_current"] = null;
|
||||
var relation_arrival_current = relation_arrival.querySelector("span.delay, span.delayOnTime");
|
||||
if(typeof relation_arrival_list !== 'undfined') {
|
||||
if(relation_arrival_current != null) {
|
||||
data[i]["to"]["time_current"] = relation_arrival_current.innerText.trim();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user