@screeb/rrweb 1.0.19 → 1.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5500,7 +5500,9 @@ function initStyleSheetObserver({ styleSheetRuleCb, mirror: mirror2, stylesheetM
5500
5500
  id,
5501
5501
  styleId,
5502
5502
  removes: [
5503
- { index: [...getNestedCSSRulePositions(win, thisArg), index] }
5503
+ {
5504
+ index: [...getNestedCSSRulePositions(win, thisArg), index]
5505
+ }
5504
5506
  ]
5505
5507
  });
5506
5508
  }
@@ -7606,14 +7608,18 @@ function record(options = {}) {
7606
7608
  init();
7607
7609
  } else {
7608
7610
  handlers.push(
7609
- on("DOMContentLoaded", () => {
7610
- wrappedEmit({
7611
- type: EventType.DomContentLoaded,
7612
- data: {}
7613
- });
7614
- if (recordAfter === "DOMContentLoaded")
7615
- init();
7616
- }, win.document)
7611
+ on(
7612
+ "DOMContentLoaded",
7613
+ () => {
7614
+ wrappedEmit({
7615
+ type: EventType.DomContentLoaded,
7616
+ data: {}
7617
+ });
7618
+ if (recordAfter === "DOMContentLoaded")
7619
+ init();
7620
+ },
7621
+ win.document
7622
+ )
7617
7623
  );
7618
7624
  handlers.push(
7619
7625
  on(
@@ -8834,9 +8840,7 @@ class Replayer {
8834
8840
  }
8835
8841
  });
8836
8842
  if (hasAnyTail) {
8837
- this.mouseTailAnimationFrame = requestAnimationFrame(
8838
- this.stepMouseTails
8839
- );
8843
+ this.mouseTailAnimationFrame = requestAnimationFrame(this.stepMouseTails);
8840
8844
  } else {
8841
8845
  this.mouseTailAnimationFrame = null;
8842
8846
  }
@@ -10385,9 +10389,7 @@ class Replayer {
10385
10389
  const now = typeof performance !== "undefined" ? performance.now() : Date.now();
10386
10390
  pointer.tailPositions.push({ x: position.x, y: position.y, t: now });
10387
10391
  if (this.mouseTailAnimationFrame === null) {
10388
- this.mouseTailAnimationFrame = requestAnimationFrame(
10389
- this.stepMouseTails
10390
- );
10392
+ this.mouseTailAnimationFrame = requestAnimationFrame(this.stepMouseTails);
10391
10393
  }
10392
10394
  }
10393
10395
  hoverElements(el) {