Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/rrweb-snapshot/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ export function splitCssText(
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
return splitCache.get(cssText)!;
}
const og = cssText;
const childNodes = Array.from(style.childNodes);
const splits: string[] = [];
let iterLimit = 0;
Expand Down Expand Up @@ -553,7 +554,7 @@ export function splitCssText(
}
}
splits.push(cssText); // either the full thing if no splits were found, or the last split
splitCache.set(cssText, splits);
splitCache.set(og, splits);
return splits;
}

Expand Down
Loading