We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b5cc5d commit 9eb39e4Copy full SHA for 9eb39e4
packages/rrweb-snapshot/src/utils.ts
@@ -479,6 +479,7 @@ export function splitCssText(
479
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
480
return splitCache.get(cssText)!;
481
}
482
+ const og = cssText;
483
const childNodes = Array.from(style.childNodes);
484
const splits: string[] = [];
485
let iterLimit = 0;
@@ -553,7 +554,7 @@ export function splitCssText(
553
554
555
556
splits.push(cssText); // either the full thing if no splits were found, or the last split
- splitCache.set(cssText, splits);
557
+ splitCache.set(og, splits);
558
return splits;
559
560
0 commit comments