DOMContentLoaded and load does not work properly if "devtools.webconsole.persistlog == true" - is getting higher

Issue #52
This commit is contained in:
janekptacijarabaci 2018-03-05 20:30:12 +01:00 committed by Roy Tam
commit b8bbffacbe
3 changed files with 20 additions and 9 deletions

View file

@ -80,8 +80,10 @@ function getDisplayedTimingMarker(state, marker) {
}
let firstRequestStartedMillis = null;
if (state.requests.items.length) {
firstRequestStartedMillis = state.requests.items[0]
.attachment.firstRequestStartedMillis;
firstRequestStartedMillis = state.requests
.items[state.requests.items.length - 1]
.attachment
.firstRequestStartedMillisNotPersistent;
}
if (timingMarker && firstRequestStartedMillis) {
return timingMarker - firstRequestStartedMillis;