Skip to content

Commit

Permalink
Length check against wrong array was causing 'should record style mut…
Browse files Browse the repository at this point in the history
…ations with multiple child nodes and replay them correctly' test to fail. I haven't looked into things more deeply than that the test was complaining about missing .length after `replayer.pause(1000);`
  • Loading branch information
eoghanmurray committed Jan 17, 2025
1 parent 18438f2 commit eb958c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rrweb-snapshot/src/rebuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export function applyCssSplits(
const childTextNode = childTextNodes[i];
if (!hackCss) {
childTextNode.textContent = cssTextSplits[i];
} else if (i < childTextNodes.length - 1) {
} else if (i < cssTextSplits.length - 1) {
let endIndex = startIndex;
let endSearch = cssTextSplits[i + 1].length;

Expand Down

0 comments on commit eb958c4

Please sign in to comment.