Skip to content

Commit

Permalink
run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasBa committed Jul 18, 2024
1 parent 77d8762 commit 5e3808a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/rrweb/src/record/mutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ export default class MutationBuffer {
[Node, Node | undefined]
>();

for(let i = m.addedNodes.length-1; i >= 0; i--) {
for (let i = m.addedNodes.length - 1; i >= 0; i--) {
const n = m.addedNodes[i];
genAddsQueue.push([n, m.target]);

Expand Down Expand Up @@ -726,25 +726,25 @@ export default class MutationBuffer {
continue;
}

for(let j = n.childNodes.length-1; j >= 0; j--) {
for (let j = n.childNodes.length - 1; j >= 0; j--) {
const childN = n.childNodes[j];
if (this.movedSet.has(childN) || this.addedSet.has(childN))
return;

genAddsQueue.push([childN, undefined]);
};
}
if (hasShadowRoot(n)) {
for(let j = n.shadowRoot.childNodes.length-1; j >= 0; j--) {
for (let j = n.shadowRoot.childNodes.length - 1; j >= 0; j--) {
const childN = n.shadowRoot.childNodes[j];
if (this.movedSet.has(childN) || this.addedSet.has(childN))
return;

this.processedNodeManager.add(childN, this);
genAddsQueue.push([childN, n]);
};
}
}
}
};
}

m.removedNodes.forEach((n) => {
const nodeId = this.mirror.getId(n);
Expand Down

0 comments on commit 5e3808a

Please sign in to comment.