mirror of
https://github.com/morluto/rea.git
synced 2026-12-06 15:33:56 +08:00
refactor(web): reuse frame sibling accumulation (#17337)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { appendToMapList } from "./appendToMapList.js";
|
||||
import type { WebPageInspection } from "./browserObservationSchemas.js";
|
||||
import { digestCanonicalValue } from "./canonicalDigest.js";
|
||||
|
||||
@@ -43,9 +44,7 @@ export const fingerprintWebCaptureFrames = (
|
||||
roots.push(fingerprint);
|
||||
continue;
|
||||
}
|
||||
const siblings = children.get(parentId) ?? [];
|
||||
siblings.push(fingerprint);
|
||||
children.set(parentId, siblings);
|
||||
appendToMapList(children, parentId, fingerprint);
|
||||
const count = (remaining.get(parentId) ?? 0) - 1;
|
||||
remaining.set(parentId, count);
|
||||
if (count === 0) {
|
||||
|
||||
Reference in New Issue
Block a user