Skip to content

Commit

Permalink
I keep accidentally forgetting camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
eoghanmurray committed Jan 10, 2025
1 parent 724a27b commit 0fbf355
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/rrweb-snapshot/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ export function splitCssText(
): string[] {
const childNodes = Array.from(style.childNodes);
const splits: string[] = [];
let iter_limit = 0;
let iterLimit = 0;
if (childNodes.length > 1 && cssText && typeof cssText === 'string') {
let cssTextNorm = normalizeCssString(cssText);
const normFactor = cssTextNorm.length / cssText.length;
Expand Down Expand Up @@ -507,8 +507,8 @@ export function splitCssText(
// find the split point in the original text
let k = Math.floor(splitNorm / normFactor);
for (; k > 0 && k < cssText.length; ) {
iter_limit += 1;
if (iter_limit > 50 * childNodes.length) {
iterLimit += 1;
if (iterLimit > 50 * childNodes.length) {
// quit for performance purposes
splits.push(cssText);
return splits;
Expand Down

0 comments on commit 0fbf355

Please sign in to comment.