From 2f4fa17a5c8eaf44a80c58c524dd27c4229a7eb8 Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Mon, 5 Mar 2018 20:30:12 +0100 Subject: DOMContentLoaded and load does not work properly if "devtools.webconsole.persistlog == true" - is getting higher Issue #52 --- devtools/client/netmonitor/selectors/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'devtools/client/netmonitor/selectors') diff --git a/devtools/client/netmonitor/selectors/index.js b/devtools/client/netmonitor/selectors/index.js index 612188758..ba5c19094 100644 --- a/devtools/client/netmonitor/selectors/index.js +++ b/devtools/client/netmonitor/selectors/index.js @@ -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; -- cgit v1.2.3