Skip to content

Commit

Permalink
#166 don't rely on fist entry being the first
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Mrowetz committed Mar 7, 2017
1 parent bced49c commit c7c8402
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ts/transformers/har.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,10 @@ function getPages(data: Har) {
const earliestDate = Date.parse(earliest);
return earliestDate < currDate ? earliest : curr.startedDateTime;
}, data.entries[0].startedDateTime);
console.log(statedTime);
return [{
id: "",
pageTimings: {},
startedDateTime: data.entries[0].startedDateTime,
startedDateTime: statedTime,
title: "n/a",
} as Page];
}
Expand Down

0 comments on commit c7c8402

Please sign in to comment.