Skip to content

Commit eb958c4

Browse files
committed
Length check against wrong array was causing 'should record style mutations 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);
1 parent 18438f2 commit eb958c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/rrweb-snapshot/src/rebuild.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export function applyCssSplits(
114114
const childTextNode = childTextNodes[i];
115115
if (!hackCss) {
116116
childTextNode.textContent = cssTextSplits[i];
117-
} else if (i < childTextNodes.length - 1) {
117+
} else if (i < cssTextSplits.length - 1) {
118118
let endIndex = startIndex;
119119
let endSearch = cssTextSplits[i + 1].length;
120120

0 commit comments

Comments
 (0)