mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +09:00
moebius#93: DevTools: Network - DOMContentLoaded and load
Issue #31 Improvements: #34 https://github.com/MoonchildProductions/moebius/pull/93
This commit is contained in:
parent
558c645ef6
commit
ed8a17ae7d
12 changed files with 132 additions and 4 deletions
|
|
@ -73,6 +73,24 @@ const getDisplayedRequestsSummary = createSelector(
|
|||
})
|
||||
);
|
||||
|
||||
function getDisplayedTimingMarker(state, marker) {
|
||||
let timingMarker = null;
|
||||
if (state.timingMarkers) {
|
||||
timingMarker = state.timingMarkers.get(marker);
|
||||
}
|
||||
let firstRequestStartedMillis = null;
|
||||
if (state.requests.items.length) {
|
||||
firstRequestStartedMillis = state.requests.items[0]
|
||||
.attachment.firstRequestStartedMillis;
|
||||
}
|
||||
if (timingMarker && firstRequestStartedMillis) {
|
||||
return timingMarker - firstRequestStartedMillis;
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
getDisplayedRequestsSummary,
|
||||
getDisplayedTimingMarker,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue