@posthog/rrweb 0.0.43 → 0.0.44

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.
package/dist/rrweb.js CHANGED
@@ -14503,6 +14503,9 @@ class CanvasManager {
14503
14503
  this.locked = false;
14504
14504
  }
14505
14505
  initCanvasFPSObserver(fps, win, blockClass, blockSelector, options) {
14506
+ if (!("OffscreenCanvas" in win)) {
14507
+ return;
14508
+ }
14506
14509
  const canvasContextReset = initCanvasContextObserver(
14507
14510
  win,
14508
14511
  blockClass,
@@ -14543,7 +14546,9 @@ class CanvasManager {
14543
14546
  0
14544
14547
  ]
14545
14548
  }
14546
- ]
14549
+ ],
14550
+ displayWidth: width,
14551
+ displayHeight: height
14547
14552
  });
14548
14553
  };
14549
14554
  const timeBetweenSnapshots = 1e3 / fps;