Sort requests by priority in HAR converter
This commit is contained in:
parent
b799592213
commit
69ac59fb72
|
@ -22,7 +22,9 @@ function handleNewFile(
|
||||||
}
|
}
|
||||||
|
|
||||||
function generateFakeHAR(entries: StolenDataEntry[]) {
|
function generateFakeHAR(entries: StolenDataEntry[]) {
|
||||||
const requests = entries.map((entry) => entry.request);
|
const requests = entries
|
||||||
|
.sort((entry1, entry2) => entry2.getPriority() - entry1.getPriority())
|
||||||
|
.map((entry) => entry.request);
|
||||||
return {
|
return {
|
||||||
log: {
|
log: {
|
||||||
version: "1.2",
|
version: "1.2",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user